Documentation ¶
Index ¶
- Constants
- Variables
- func ClearData()
- func CloseTestChain(bc *chain.BlockChain, db protocol.ChainDB)
- func GetStorePath() string
- func InitGenesis(db protocol.ChainDB) *types.Block
- func LoadDefaultBlock(index int) *types.Block
- func MakeTransferTx(fromPrivate *ecdsa.PrivateKey, to common.Address, amount *big.Int) *types.Transaction
- func MakeTx(fromPrivate *ecdsa.PrivateKey, to common.Address, amount *big.Int, ...) *types.Transaction
- func NewTestChain() (*chain.BlockChain, protocol.ChainDB)
- func SignTx(tx *types.Transaction, private *ecdsa.PrivateKey) *types.Transaction
Constants ¶
View Source
const ( Stable dbStatus = iota Unstable // unstable but still in store NotInStore )
Variables ¶
View Source
var (
FounderPrivate, _ = crypto.HexToECDSA("432a86ab8765d82415a803e29864dcfc1ed93dac949abf6f95a583179f27e4bb") // secp256k1.V = 1
FounderAddr = crypto.PubkeyToAddress(FounderPrivate.PublicKey) // Lemo836BQKCBZ8Z7B7N4G4N4SNGBT24ZZSJQD24D
)
Functions ¶
func CloseTestChain ¶
func CloseTestChain(bc *chain.BlockChain, db protocol.ChainDB)
func GetStorePath ¶
func GetStorePath() string
func LoadDefaultBlock ¶
func MakeTransferTx ¶
func MakeTransferTx(fromPrivate *ecdsa.PrivateKey, to common.Address, amount *big.Int) *types.Transaction
func NewTestChain ¶
func NewTestChain() (*chain.BlockChain, protocol.ChainDB)
NewTestChain creates chain for test
func SignTx ¶
func SignTx(tx *types.Transaction, private *ecdsa.PrivateKey) *types.Transaction
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.