Leaders*[]p2p.Peer// All the leaders for each shard
Leaders*[]p2p.Peer// All the leaders for each shard
UpdateBlocksfunc([]*blockchain.Block)// Closure function used to sync new block with the leader. Once the leader finishes the consensus on a new block, it will send it to the clients. Clients use this method to update their blockchain
UpdateBlocksfunc([]*blockchain.Block)// Closure function used to sync new block with the leader. Once the leader finishes the consensus on a new block, it will send it to the clients. Clients use this method to update their blockchain
ShardUtxoMapmap[uint32]blockchain.UtxoMap
ShardUtxoMapmap[uint32]blockchain.UtxoMap
loglog.Logger// Log utility
ShardUtxoMapMutexsync.Mutex// Mutex for the UTXO maps
loglog.Logger// Log utility
}
}
// The message handler for CLIENT/TRANSACTION messages.
// The message handler for CLIENT/TRANSACTION messages.