feat(db): Don't store TxHash when writing to the table (#2279)

This commit is contained in:
joshieDo
2023-04-21 17:15:52 +08:00
committed by GitHub
parent 2e7139c1ae
commit 9452b3658b
25 changed files with 358 additions and 118 deletions

View File

@ -176,7 +176,7 @@ where
let Block { mut header, body, .. } = block;
// clear all transactions from pool
pool.remove_transactions(body.iter().map(|tx| tx.hash));
pool.remove_transactions(body.iter().map(|tx| tx.hash()));
header.receipts_root = if post_state.receipts().is_empty() {
EMPTY_RECEIPTS