diff --git a/blockchain/utxopool.go b/blockchain/utxopool.go index 62021e2eb..6081e05ce 100644 --- a/blockchain/utxopool.go +++ b/blockchain/utxopool.go @@ -23,8 +23,7 @@ type UTXOPool struct { ] ] */ - UtxoMap map[string]map[string]map[int]int - + UtxoMap map[string]map[string]map[int]int LockedUtxoMap map[string]map[string]map[int]int ShardId uint32 mutex sync.Mutex diff --git a/node/message.go b/node/message.go index 6a527c8ad..c02841d81 100644 --- a/node/message.go +++ b/node/message.go @@ -95,14 +95,6 @@ func ConstructUtxoResponseMessage(pool blockchain.UTXOPool) []byte { return byteBuffer.Bytes() } -// Constructs utxo request message -func ConstructUtxoRequestMessage() []byte { - byteBuffer := bytes.NewBuffer([]byte{byte(common.NODE)}) - byteBuffer.WriteByte(byte(EXPERIMENT)) - byteBuffer.WriteByte(byte(UTXO_REQUEST)) - return byteBuffer.Bytes() -} - // Constructs blocks sync message to send blocks to other nodes func ConstructBlocksSyncMessage(blocks []blockchain.Block) []byte { byteBuffer := bytes.NewBuffer([]byte{byte(common.NODE)})