From 263f79ee67f8b634c77f7f4bd6e7e32ca976e0a7 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Mon, 27 Oct 2025 14:10:40 +0800 Subject: [PATCH] missing documentation for func --- core/state/database.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/state/database.go b/core/state/database.go index d02219f28e..fd30aca32f 100644 --- a/core/state/database.go +++ b/core/state/database.go @@ -99,6 +99,9 @@ type Trie interface { // in the trie with provided address. UpdateAccount(address common.Address, account *types.StateAccount, codeLen int) error + // UpdateAccountAsync will abstract the write of an account to the secure trie. + // The actual value of the account is not resolved from the passed function until + // it is needed when hashing the trie. UpdateAccountAsync(address common.Address, accountResolver func() *types.StateAccount) error // UpdateStorage associates key with value in the trie. If value has length zero,