From 183856e7884ba275db1d39bed40bdf624d72d6d0 Mon Sep 17 00:00:00 2001 From: Max Revitt Date: Mon, 5 Dec 2022 17:44:07 +0000 Subject: [PATCH] Withdrawals - Database (#758) Adds withdrawals bucket to db. --- kv/tables.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kv/tables.go b/kv/tables.go index c90ff4926..d8a9f1538 100644 --- a/kv/tables.go +++ b/kv/tables.go @@ -249,6 +249,9 @@ const ( BlockBody = "BlockBody" // block_num_u64 + hash -> block body + // EIP-4895 - Beacon chain push withdrawals as operations + Withdrawals = "Withdrawal" // withdrawal_index_u64 -> rlp(withdrawal) + // EthTx - stores only txs of canonical blocks. As a result - id's used in this table are also // canonical - same across all nodex in network - regardless reorgs. Transactions of // non-canonical blocs are not removed, but moved to NonCanonicalTransaction - then during re-org don't @@ -473,6 +476,7 @@ var ChaindataTables = []string{ ContractCode, HeaderNumber, BlockBody, + Withdrawals, Receipts, TxLookup, ConfigTable,