Merge pull request #264 from status-im/forkid

add getForkId interface to AbstractChainDB
This commit is contained in:
andri lim 2020-07-02 14:12:53 +07:00 committed by GitHub
commit 4f533eb5e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()