more placeholder procs required for the blockchain sync

This commit is contained in:
Zahary Karadjov 2018-07-24 00:30:45 +03:00
parent 859e70cd33
commit 7ac5f4b551
1 changed files with 9 additions and 2 deletions

View File

@ -39,7 +39,7 @@ type
txRoot*: Hash256
receiptRoot*: Hash256
bloom*: BloomFilter
difficulty*: UInt256
difficulty*: DifficultyInt
blockNumber*: BlockNumber
gasLimit*: GasInt
gasUsed*: GasInt
@ -96,7 +96,8 @@ type
BlocksRequest* = object
startBlock*: HashOrNum
maxResults*, skip*, reverse*: uint64
maxResults*, skip*: uint
reverse*: bool
AbstractChainDB* = ref object
@ -125,6 +126,9 @@ else:
template toBlockNumber*(n: SomeInteger): BlockNumber =
u256(n)
func blockHash*(h: BlockHeader): KeccakHash =
assert false, "not implemented yet"
#
# Rlp serialization:
#
@ -190,6 +194,9 @@ method genesisHash*(db: AbstractChainDb): KeccakHash =
method getBlockHeader*(db: AbstractChainDb, b: HashOrNum): BlockHeaderRef =
notImplemented
method getBestBlockHeader*(db: AbstractChainDb): BlockHeaderRef =
notImplemented
method getSuccessorHeader*(db: AbstractChainDb,
h: BlockHeader): BlockHeaderRef =
notImplemented