Documentation
¶
Index ¶
- Variables
- func CreatKeyV() (*ecdsa.PrivateKey, *ecdsa.PrivateKey)
- func CreatTestTxV() (*model.Transaction, *model.Transaction)
- func CreateBlock(number uint64) *model.Block
- func CreateBlock2(diff common.Difficulty, number uint64) *model.Block
- func CreateBlockByPH(number uint64, preHash common.Hash) *model.Block
- func CreateBlockBySeed(number uint64, preHash, seed common.Hash, proof, pubKey []byte) *model.Block
- func CreateBlockV() (*model.Block, *model.Block)
- func CreateEmptyBlockByPH(number uint64, preHash common.Hash) *model.Block
- func CreateKey() (*ecdsa.PrivateKey, *ecdsa.PrivateKey)
- func CreateOneTxBlockByPH(number uint64, preHash common.Hash, transaction *model.Transaction) *model.Block
- func CreateSpecialBlock(number uint64) *model.Block
- func CreateTestStateDBV() (state_processor.StateStorage, *state_processor.AccountStateDB, common.Hash)
- func CreateTestTx() (*model.Transaction, *model.Transaction)
- func CreateTxsBlockByPH(number uint64, preHash common.Hash, transactions []*model.Transaction) *model.Block
- func FactoryCreateTx(senderPrk *ecdsa.PrivateKey, nonce uint64, toAddress common.Address, ...) *model.Transaction
- func GetEnode(str string) *enode.Node
- func InitTestV() (alice, bob *ecdsa.PrivateKey, fr *fakeChainReader)
- func NewFakeReader(block *model.Block) *fakeChainReader
- type FAddress
- type FBlock
- type FTx
Constants ¶
This section is empty.
Variables ¶
View Source
var AliceAddrV = common.HexToAddress("0x00005586B883Ec6dd4f8c26063E18eb4Bd228e59c3E9")
View Source
var AlicePrivV = "289c2857d4598e37fb9647507e47a309d6133539bf21a8b9cb6df88fd5232031"
View Source
var BobAddrV = common.HexToAddress("0x0000970e8128aB834E8EAC17aB8E3812f010678CF791")
View Source
var BobPrivV = "289c2857d4598e37fb9647507e47a309d6133539bf21a8b9cb6df88fd5232032"
Functions ¶
func CreatKeyV ¶
func CreatKeyV() (*ecdsa.PrivateKey, *ecdsa.PrivateKey)
func CreatTestTxV ¶
func CreatTestTxV() (*model.Transaction, *model.Transaction)
func CreateBlock ¶
func CreateBlock2 ¶
func CreateBlock2(diff common.Difficulty, number uint64) *model.Block
func CreateBlockBySeed ¶
func CreateEmptyBlockByPH ¶
func CreateKey ¶
func CreateKey() (*ecdsa.PrivateKey, *ecdsa.PrivateKey)
func CreateOneTxBlockByPH ¶
func CreateSpecialBlock ¶
func CreateTestStateDBV ¶
func CreateTestTx ¶
func CreateTestTx() (*model.Transaction, *model.Transaction)
func CreateTxsBlockByPH ¶
func FactoryCreateTx ¶
func InitTestV ¶
func InitTestV() (alice, bob *ecdsa.PrivateKey, fr *fakeChainReader)
Types ¶
type FAddress ¶
type FAddress struct {
// contains filtered or unexported fields
}
func NewFAddress ¶
Click to show internal directories.
Click to hide internal directories.