add state check assert routine

This commit is contained in:
alex.sharov 2021-08-28 15:27:23 +07:00
parent b1e8c95609
commit 71366cb4ab

View File

@ -630,7 +630,7 @@ func (sc *SendersCache) flush(tx kv.RwTx, byNonce *ByNonce, sendersWithoutTransa
}
justInserted = append(justInserted, id)
}
sort.Slice(justInserted, func(i, j int) bool { return justInserted[i] < justInserted[j] })
v := make([]byte, 8, 8+32)
for id, info := range sc.senderInfo {
binary.BigEndian.PutUint64(encID, id)