Skip to content

Commit

Permalink
Attempt to fix withdrawals sync issue - write withdrawals to RLP in B…
Browse files Browse the repository at this point in the history
…lock (as well as BlockBodies)

Suspect the code path that receives blocks from EL peers isn't writing withdrawals to disk

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
  • Loading branch information
siladu committed Dec 21, 2022
1 parent 161b70c commit 27067a0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public void writeTo(final RLPOutput out) {
out.writeList(body.getTransactions(), Transaction::writeTo);
out.writeList(body.getOmmers(), BlockHeader::writeTo);

body.getWithdrawals().ifPresent(withdrawals -> out.writeList(withdrawals, Withdrawal::writeTo));

out.endList();
}

Expand Down

0 comments on commit 27067a0

Please sign in to comment.