Documentation ¶
Index ¶
- func MakeBlock(bc types.Blockchain, ch types.Chainer, sender, receiver *crypto.Key) types.Block
- func MakeBlockWithBalanceTx(bc types.Blockchain, ch types.Chainer, sender, receiver *crypto.Key) types.Block
- func MakeBlockWithNoPoolAddition(bc types.Blockchain, ch types.Chainer, sender, receiver *crypto.Key) types.Block
- func MakeBlockWithNoTx(bc types.Blockchain, ch types.Chainer, sender, receiver *crypto.Key) types.Block
- func MakeBlockWithOnlyAllocTx(bc types.Blockchain, ch types.Chainer, sender, receiver *crypto.Key) types.Block
- func MakeBlockWithParentHash(bc types.Blockchain, ch types.Chainer, sender, receiver *crypto.Key, ...) types.Block
- func MakeBlockWithSingleTx(bc types.Blockchain, ch types.Chainer, sender, receiver *crypto.Key, ...) types.Block
- func MakeBlockWithSingleTxAndTime(bc types.Blockchain, ch types.Chainer, sender, receiver *crypto.Key, ...) types.Block
- func MakeBlockWithTotalDifficulty(bc types.Blockchain, ch types.Chainer, sender, receiver *crypto.Key, ...) types.Block
- func MakeTestBlock(bc types.Blockchain, chain types.Chainer, gp *types.GenerateBlockParams) types.Block
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeBlockWithBalanceTx ¶
func MakeBlockWithBalanceTx(bc types.Blockchain, ch types.Chainer, sender, receiver *crypto.Key) types.Block
MakeBlockWithBalanceTx is like MakeBlockWithSingleTx but does not require a sender nonce
func MakeBlockWithNoPoolAddition ¶
func MakeBlockWithNoPoolAddition(bc types.Blockchain, ch types.Chainer, sender, receiver *crypto.Key) types.Block
MakeBlockWithNoPoolAddition is like MakeBlockWithBalanceTx but does not add the transactions in the pool
func MakeBlockWithNoTx ¶
func MakeBlockWithNoTx(bc types.Blockchain, ch types.Chainer, sender, receiver *crypto.Key) types.Block
MakeBlockWithNoTx creates a block with no transaction in it.
func MakeBlockWithOnlyAllocTx ¶
func MakeBlockWithOnlyAllocTx(bc types.Blockchain, ch types.Chainer, sender, receiver *crypto.Key) types.Block
MakeBlockWithOnlyAllocTx creates a block with only one allocation transaction
func MakeBlockWithParentHash ¶
func MakeBlockWithParentHash(bc types.Blockchain, ch types.Chainer, sender, receiver *crypto.Key, parentHash util.Hash) types.Block
MakeBlockWithParentHash creates a block with one balance transaction and a given parent block hash
func MakeBlockWithSingleTx ¶
func MakeBlockWithSingleTx(bc types.Blockchain, ch types.Chainer, sender, receiver *crypto.Key, senderNonce uint64) types.Block
MakeBlockWithSingleTx creates a block with only one balance transaction. Sender nonce is required
func MakeBlockWithSingleTxAndTime ¶
func MakeBlockWithSingleTxAndTime(bc types.Blockchain, ch types.Chainer, sender, receiver *crypto.Key, senderNonce uint64, blockTime int64) types.Block
MakeBlockWithSingleTxAndTime creates a block with only one balance transaction. Sender nonce is required and Time
func MakeBlockWithTotalDifficulty ¶
func MakeBlockWithTotalDifficulty(bc types.Blockchain, ch types.Chainer, sender, receiver *crypto.Key, td *big.Int) types.Block
MakeBlockWithTotalDifficulty creates a block with one balance transaction and a given total difficulty
func MakeTestBlock ¶
func MakeTestBlock(bc types.Blockchain, chain types.Chainer, gp *types.GenerateBlockParams) types.Block
MakeTestBlock creates a block and adds the transactions in the transactions pool attached to the blockchain instance
Types ¶
This section is empty.