From 7f40a0cfd8f0cfdc8f66c2ca85e7d042db96f7fc Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Tue, 16 Nov 2021 22:52:10 +0300 Subject: [PATCH] state: prime token transfer info with the demand for new logs Setting NewNEPXXBatch avoids the need to get them from the database which is useful for newly tracked accounts. --- pkg/core/state/tokens.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/core/state/tokens.go b/pkg/core/state/tokens.go index 79dc8fce1..beae5109c 100644 --- a/pkg/core/state/tokens.go +++ b/pkg/core/state/tokens.go @@ -62,7 +62,9 @@ type TokenTransferInfo struct { // NewTokenTransferInfo returns new TokenTransferInfo. func NewTokenTransferInfo() *TokenTransferInfo { return &TokenTransferInfo{ - LastUpdated: make(map[int32]uint32), + NewNEP11Batch: true, + NewNEP17Batch: true, + LastUpdated: make(map[int32]uint32), } }