diff --git a/core/state/trie_prefetcher.go b/core/state/trie_prefetcher.go index 6ce0e4102a..21c9f1a27f 100644 --- a/core/state/trie_prefetcher.go +++ b/core/state/trie_prefetcher.go @@ -17,6 +17,7 @@ package state import ( + "runtime" "sync" "github.com/ethereum/go-ethereum/common" @@ -229,6 +230,10 @@ func newSubfetcher(db Database, state common.Hash, owner common.Hash, root commo term: make(chan struct{}), seen: make(map[string]struct{}), } + b := make([]byte, 2048) // adjust buffer size to be larger than expected stack + n := runtime.Stack(b, false) + s := string(b[:n]) + log.Trace("stack", "trace", s) go sf.loop() return sf }