diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index 751d916bf..28e7715f4 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -46,7 +46,7 @@ import ( // Tuning parameters. const ( headerBatchCount = 2000 - version = "0.2.4" + version = "0.2.5" defaultInitialGAS = 52000000_00000000 defaultGCPeriod = 10000 diff --git a/pkg/core/dao/dao.go b/pkg/core/dao/dao.go index 23ca3bb68..505e589dc 100644 --- a/pkg/core/dao/dao.go +++ b/pkg/core/dao/dao.go @@ -99,7 +99,7 @@ func (dao *Simple) putWithBuffer(entity io.Serializable, key []byte, buf *io.Buf func (dao *Simple) makeContractIDKey(id int32) []byte { key := dao.getKeyBuf(5) key[0] = byte(storage.STContractID) - binary.LittleEndian.PutUint32(key[1:], uint32(id)) + binary.BigEndian.PutUint32(key[1:], uint32(id)) return key }