clean up work

pull/37/head
Minh Doan 6 years ago
parent 3f825b1926
commit f0fd5e6180
  1. 3
      blockchain/utxopool.go
  2. 8
      node/message.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

@ -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)})

Loading…
Cancel
Save