storage: drop STAccount prefix

It's unused for a long time.
This commit is contained in:
Roman Khimov 2022-02-16 13:06:57 +03:00
parent 54bc603831
commit b6a4947cfd
2 changed files with 4 additions and 5 deletions

View file

@ -16,7 +16,6 @@ const (
// DataMPTAux is used to store additional MPT data like height-root
// mappings and local/validated heights.
DataMPTAux KeyPrefix = 0x04
STAccount KeyPrefix = 0x40
STContractID KeyPrefix = 0x51
STStorage KeyPrefix = 0x70
// STTempStorage is used to store contract storage items during state sync process

View file

@ -10,7 +10,7 @@ import (
var (
prefixes = []KeyPrefix{
DataExecutable,
STAccount,
DataMPT,
STStorage,
IXHeaderHashList,
SYSCurrentBlock,
@ -20,7 +20,7 @@ var (
expected = []uint8{
0x01,
0x40,
0x03,
0x70,
0x80,
0xc0,
@ -49,12 +49,12 @@ func TestBatchToOperations(t *testing.T) {
b := &MemBatch{
Put: []KeyValueExists{
{KeyValue: KeyValue{Key: []byte{byte(STStorage), 0x01}, Value: []byte{0x01}}},
{KeyValue: KeyValue{Key: []byte{byte(STAccount), 0x02}, Value: []byte{0x02}}},
{KeyValue: KeyValue{Key: []byte{byte(DataMPT), 0x02}, Value: []byte{0x02}}},
{KeyValue: KeyValue{Key: []byte{byte(STStorage), 0x03}, Value: []byte{0x03}}, Exists: true},
},
Deleted: []KeyValueExists{
{KeyValue: KeyValue{Key: []byte{byte(STStorage), 0x04}, Value: []byte{0x04}}},
{KeyValue: KeyValue{Key: []byte{byte(STAccount), 0x05}, Value: []byte{0x05}}},
{KeyValue: KeyValue{Key: []byte{byte(DataMPT), 0x05}, Value: []byte{0x05}}},
{KeyValue: KeyValue{Key: []byte{byte(STStorage), 0x06}, Value: []byte{0x06}}, Exists: true},
},
}