From 7ac5f4b551968dddfbe5b13f5f9a589896011d99 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Tue, 24 Jul 2018 00:30:45 +0300 Subject: [PATCH] more placeholder procs required for the blockchain sync --- eth_common/eth_types.nim | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/eth_common/eth_types.nim b/eth_common/eth_types.nim index 539e479..c29a438 100644 --- a/eth_common/eth_types.nim +++ b/eth_common/eth_types.nim @@ -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