diff --git a/pkg/core/storage/store.go b/pkg/core/storage/store.go index 802bd2989..24372bc4c 100644 --- a/pkg/core/storage/store.go +++ b/pkg/core/storage/store.go @@ -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 diff --git a/pkg/core/storage/store_test.go b/pkg/core/storage/store_test.go index 220ad4a55..a07b97ece 100644 --- a/pkg/core/storage/store_test.go +++ b/pkg/core/storage/store_test.go @@ -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}, }, }