add getForkId interface to AbstractChainDB

This commit is contained in:
jangko 2020-07-02 11:09:48 +07:00
parent bfda38ba82
commit b5cabdfde4
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,9 @@ type
Topic* = array[32, byte]
# topic can be Hash256 or zero padded bytes array
ForkID* = tuple[crc: uint32, nextFork: uint64]
# EIP 2364/2124
Account* = object
nonce*: AccountNonce
balance*: UInt256
@ -399,3 +402,6 @@ method addTransactions*(db: AbstractChainDB, transactions: openarray[Transaction
method persistBlocks*(db: AbstractChainDB, headers: openarray[BlockHeader], bodies: openarray[BlockBody]): ValidationResult {.base, gcsafe.} =
notImplemented()
method getForkId*(db: AbstractChainDB, n: BlockNumber): ForkID {.base, gcsafe.} =
# EIP 2364/2124
notImplemented()