# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
AppendBlocks append empty blocks to chain, mainly used to mature the coinbase tx.
CreateCoinbaseTx create coinbase tx at block height.
CreateRegisterContractTx create register contract transaction.
CreateSpendInput create SpendInput which spent the output from tx.
CreateTxFromTx create a tx spent the output in outputIndex at baseTx.
CreateUseContractTx create use contract transaction.
MockBlock mock a block.
MockChain mock chain with genesis block.
MockSign sign a tx.
MockTx mock a tx.
MockUTXO mock a utxo.
NewBlock create block according to the current status of chain.
NewTxGenerator create a TxGenerator.
ReplaceCoinbase replace the coinbase tx of block with coinbaseTx.
SignInstructionFor read CtrlProgram from db, construct SignInstruction for SpendInput.
# Structs
TxGenerator used to generate new tx.