MCPcopy Create free account
hub / github.com/CPChain/chain / Number

Method Number

core/chain_makers.go:110–112  ·  view source on GitHub ↗

Number returns the block number of the block being generated.

()

Source from the content-addressed store, hash-verified

108
109// Number returns the block number of the block being generated.
110func (b *BlockGen) Number() *big.Int {
111 return new(big.Int).Set(b.header.Number)
112}
113
114// AddUncheckedReceipt forcefully adds a receipts to the block without a
115// backing transaction.

Callers 14

makeHeaderFunction · 0.45
ExampleGenerateChainFunction · 0.45
CommitMethod · 0.45
loadLastStateMethod · 0.45
FastSyncCommitHeadMethod · 0.45
repairMethod · 0.45
CommitStateDBMethod · 0.45
InsertReceiptChainMethod · 0.45
WriteBlockWithStateMethod · 0.45
insertChainMethod · 0.45
reportMethod · 0.45
reorgMethod · 0.45

Calls 1

SetMethod · 0.45

Tested by 2

ExampleGenerateChainFunction · 0.36