Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaximumExtraDataSize uint64 = 32 // Maximum size extra data may be after Genesis. EpochDuration uint64 = 30000 // Duration between proof-of-stack epochs MaxCodeSize = 32768 // Maximum bytecode to permit for a contract )
View Source
const ( // BloomBitsBlocks is the number of blocks a single bloom bit section vector // contains. BloomBitsBlocks uint64 = 4096 )
Variables ¶
View Source
var (
RewordPrikey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f292")
Address = crypto.PubkeyToAddress(RewordPrikey.PublicKey)
)
View Source
var ( DefaultChainId = 1 WorkingChainId = 1 DefaultChainConfig = &ChainConfig{big.NewInt(1)} TestChainConfig = &ChainConfig{ChainId: big.NewInt(101)} )
Functions ¶
This section is empty.
Types ¶
type ChainConfig ¶
type ConfigCompatError ¶
type ConfigCompatError struct { What string // block numbers of the stored and new configurations StoredConfig, NewConfig *big.Int // the block number to which the local chain must be rewound to correct the error RewindTo uint64 }
ConfigCompatError is raised if the locally-stored blockchain is initialised with a ChainConfig that would alter the past.
func (*ConfigCompatError) Error ¶
func (err *ConfigCompatError) Error() string
Click to show internal directories.
Click to hide internal directories.