|
|
@ -86,10 +86,10 @@ func (node *Node) String() string { |
|
|
|
return node.Consensus.String() |
|
|
|
return node.Consensus.String() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// [Testing code] Should be deleted for production
|
|
|
|
// [Testing code] Should be deleted after production
|
|
|
|
// Create in genesis block numTxs transactions which assign 1000 token to each address in [1 - numTxs]
|
|
|
|
// Creates in genesis block numAddress transactions which assign 1000 token to each address in [0 - numAddress)
|
|
|
|
func (node *Node) AddMoreFakeTransactions(numTxs int) { |
|
|
|
func (node *Node) AddTestingAddresses(numAddress int) { |
|
|
|
txs := make([]*blockchain.Transaction, numTxs) |
|
|
|
txs := make([]*blockchain.Transaction, numAddress) |
|
|
|
for i := range txs { |
|
|
|
for i := range txs { |
|
|
|
txs[i] = blockchain.NewCoinbaseTX(strconv.Itoa(i), "", node.Consensus.ShardID) |
|
|
|
txs[i] = blockchain.NewCoinbaseTX(strconv.Itoa(i), "", node.Consensus.ShardID) |
|
|
|
} |
|
|
|
} |
|
|
|