Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unified database frontend #1661

Merged
merged 8 commits into from
Jul 31, 2023
Prev Previous commit
Fix exception annotation
  • Loading branch information
mjfh committed Jul 31, 2023
commit 526d6ec9d9a4107c3663ce8a81f3ef7cd8ca0dc3
6 changes: 5 additions & 1 deletion nimbus/db/core_db/core_apps.nim
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,11 @@ proc persistWithdrawals*(
trie.put(rlp.encode(idx), encodedWd)
trie.rootHash

proc getWithdrawals*(db: CoreDbRef, withdrawalsRoot: Hash256): seq[Withdrawal] =
proc getWithdrawals*(
db: CoreDbRef;
withdrawalsRoot: Hash256;
): seq[Withdrawal]
{.gcsafe, raises: [RlpError].} =
for encodedWd in db.getWithdrawalsData(withdrawalsRoot):
result.add(rlp.decode(encodedWd, Withdrawal))

Expand Down