@@ -6,37 +6,49 @@ use reth_db_api::{
66 models:: { AccountBeforeTx , ShardedKey , storage_sharded_key:: StorageShardedKey } ,
77} ;
88
9- tables ! {
9+ table ! {
1010 /// Records recent block Headers, by their number.
11- Headers <BlockNumber => Header >,
11+ Headers <BlockNumber => Header >
12+ }
1213
14+ table ! {
1315 /// Records block numbers by hash.
14- HeaderNumbers <B256 => BlockNumber >,
16+ HeaderNumbers <B256 => BlockNumber >
17+ }
1518
16- /// Records the canonical chain header hashes, by height.
17- CanonicalHeaders <BlockNumber => B256 >,
19+ table ! {
20+ /// Records the canonical chain header hashes, by height.
21+ CanonicalHeaders <BlockNumber => B256 >
22+ }
1823
24+ table ! {
1925 /// Records contract Bytecode, by its hash.
20- Bytecodes <B256 => Bytecode >,
21-
22- /// Records plain account states, keyed by address.
23- PlainAccountState <Address => Account >,
24-
26+ Bytecodes <B256 => Bytecode >
27+ }
28+ table ! {
29+ /// Records plain account states, keyed by address.
30+ PlainAccountState <Address => Account >
31+ }
32+ table ! {
2533 /// Records account state change history, keyed by address.
26- AccountsHistory <ShardedKey <Address > => BlockNumberList >,
27-
34+ AccountsHistory <ShardedKey <Address > => BlockNumberList >
35+ }
36+ table ! {
2837 /// Records storage state change history, keyed by address and storage key.
29- StorageHistory <StorageShardedKey => BlockNumberList >,
30-
38+ StorageHistory <StorageShardedKey => BlockNumberList >
3139}
3240
33- tables ! {
41+ table ! {
3442 /// Records plain storage states, keyed by address and storage key.
35- PlainStorageState <Address => B256 => U256 > size: Some ( 32 + 32 ) ,
43+ PlainStorageState <Address => B256 => U256 > is 32 + 32
44+ }
3645
46+ table ! {
3747 /// Records account states before transactions, keyed by (address, block number).
38- StorageChangeSets <BlockNumberAddress => B256 => StorageEntry > size: Some ( 32 + 32 + 32 ) ,
48+ StorageChangeSets <BlockNumberAddress => B256 => StorageEntry > is 32 + 32 + 32
49+ }
3950
51+ table ! {
4052 /// Records account states before transactions, keyed by (address, block number).
41- AccountChangeSets <BlockNumberAddress => Address => AccountBeforeTx > size : None ,
53+ AccountChangeSets <BlockNumberAddress => Address => AccountBeforeTx >
4254}
0 commit comments