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.
This commit is contained in:
Roman Khimov 2021-11-16 22:52:10 +03:00
parent 095ed3f64e
commit 7f40a0cfd8

View file

@ -62,7 +62,9 @@ type TokenTransferInfo struct {
// NewTokenTransferInfo returns new TokenTransferInfo. // NewTokenTransferInfo returns new TokenTransferInfo.
func NewTokenTransferInfo() *TokenTransferInfo { func NewTokenTransferInfo() *TokenTransferInfo {
return &TokenTransferInfo{ return &TokenTransferInfo{
LastUpdated: make(map[int32]uint32), NewNEP11Batch: true,
NewNEP17Batch: true,
LastUpdated: make(map[int32]uint32),
} }
} }