|
|
@ -15,7 +15,6 @@ import ( |
|
|
|
|
|
|
|
|
|
|
|
// A node represents a program (machine) participating in the network
|
|
|
|
// A node represents a program (machine) participating in the network
|
|
|
|
type Node struct { |
|
|
|
type Node struct { |
|
|
|
consensus *consensus.Consensus |
|
|
|
|
|
|
|
consensus *consensus.Consensus |
|
|
|
consensus *consensus.Consensus |
|
|
|
BlockChannel chan blockchain.Block |
|
|
|
BlockChannel chan blockchain.Block |
|
|
|
pendingTransactions []blockchain.Transaction |
|
|
|
pendingTransactions []blockchain.Transaction |
|
|
|