Documentation
¶
Overview ¶
Constants
Index ¶
Constants ¶
View Source
const AlertPublicKey = "" /* 130-byte string literal not displayed */
View Source
const DialTimeout = 2000
View Source
const ListenPort int = 8333
View Source
const MaxAddrListSize = 30000
View Source
const MaxAlertSingnatureSize = 1024
View Source
const MaxAlertSize = 100 * 1024
View Source
const MaxDialConcurrency = 100
View Source
const MaxInvListSize = 50000
View Source
const MaxMessagePayload = 4 * 1024 * 1024
View Source
const MaxStrSize = 100 * 1024
View Source
const NetWorkMagicMain = 0xD9B4BEF9
View Source
const NetWorkMagicTestNet = 0xDAB5BFFA
View Source
const NodeServices uint64 = 1
What serivices does this node provides
View Source
const ProtocolVersion uint32 = 70002
Bitcoin network protocol version
View Source
const UserAgent = "/Kaiju:0.1.0/"
Variables ¶
View Source
var NounceInVersionMsg uint64 = uint64(rand.New(rand.NewSource(time.Now().UnixNano())).Int63())
Cannot declared as const but works as a const
Functions ¶
func ConfigFileDir ¶
func ConfigFileDir() string
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
storage
A facade of "blockchain/storage" to hide all the implementation
|
A facade of "blockchain/storage" to hide all the implementation |
|
Dogma of Bitcoin.
|
Dogma of Bitcoin. |
|
script
The script evaluation function.
|
The script evaluation function. |
|
ktree is a tree data structure used to store and maintain blockchain.
|
ktree is a tree data structure used to store and maintain blockchain. |
|
kdb
I hate long source files The first three bits of the first byte of the key are used as flags
|
I hate long source files The first three bits of the first byte of the key are used as flags |
|
CC for Crowd Control as in CCP Games.
|
CC for Crowd Control as in CCP Games. |
|
btcmsg
Data types used in Bitcoin messages All the messages in the bitcoin network protocol This file contains implementation of "getblocks" This file contains implementation of "getdata" This file contains implementation of "getheaders" All the messages in the bitcoin network protocol This file contains implementation of "notfound" All the messages in the bitcoin network protocol All the messages in the bitcoin network protocol
|
Data types used in Bitcoin messages All the messages in the bitcoin network protocol This file contains implementation of "getblocks" This file contains implementation of "getdata" This file contains implementation of "getheaders" All the messages in the bitcoin network protocol This file contains implementation of "notfound" All the messages in the bitcoin network protocol All the messages in the bitcoin network protocol |
|
peer
Remote bitcoin network peer/node
|
Remote bitcoin network peer/node |
|
This project is offically started today on April 2nd, 2014.
|
This project is offically started today on April 2nd, 2014. |
|
package "node" manages bitcoin node behavior, it uses knet, kdb and blockchain to: - Download, process and save historical bitcoin block data - Interact with other nodes in the bitcoin network to work as a full node
|
package "node" manages bitcoin node behavior, it uses knet, kdb and blockchain to: - Download, process and save historical bitcoin block data - Interact with other nodes in the bitcoin network to work as a full node |
|
catchUp
Here is how stuff gets downloaded: 0.
|
Here is how stuff gets downloaded: 0. |
Click to show internal directories.
Click to hide internal directories.