Documentation
¶
Index ¶
- func MakeTestBlockChain(chainLength int64, partNum int64, miningInterval int, printMode bool, ...) *core.BlockChain
- func PrintMemUsage()
- func RecvBlock(conn net.Conn) (*types.Block, error)
- func RecvLength(conn net.Conn) (uint32, error)
- func RecvObjectJson(conn net.Conn) ([]byte, error)
- func RecvState(conn net.Conn, db xordb.Database) error
- func SendBlock(conn net.Conn, block *types.Block) error
- func SendInterlinks(conn net.Conn, interlinks []uint64, bc *core.BlockChain) error
- func SendMessage(conn net.Conn, msg []byte) error
- func SendObject(conn net.Conn, v interface{}) error
- func SendState(conn net.Conn, db xordb.Database) error
- func SendTransactions(conn net.Conn, txs *types.Transactions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeTestBlockChain ¶
func MakeTestBlockChain(chainLength int64, partNum int64, miningInterval int, printMode bool, db xordb.Database) *core.BlockChain
make blockchain for test. insert simple blocks
func PrintMemUsage ¶
func PrintMemUsage()
PrintMemUsage outputs the current, total and OS memory being used. As well as the number of garage collection cycles completed.
func SendInterlinks ¶
Send Interlinks Block
func SendObject ¶
Send object with handling mutex, err
func SendTransactions ¶
func SendTransactions(conn net.Conn, txs *types.Transactions) error
Send Transaction with Signature and txdata
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.