Rename UTXOSet.GetCount to UTXOSet.CountTransactions
This commit is contained in:
parent
8ef0f2c86b
commit
337a637825
|
@ -7,6 +7,6 @@ func (cli *CLI) reindexUTXO() {
|
|||
UTXOSet := UTXOSet{bc}
|
||||
UTXOSet.Reindex()
|
||||
|
||||
count := UTXOSet.GetCount()
|
||||
count := UTXOSet.CountTransactions()
|
||||
fmt.Printf("Done! There are %d transactions in the UTXO set.\n", count)
|
||||
}
|
||||
|
|
|
@ -73,8 +73,8 @@ func (u UTXOSet) FindUTXO(pubKeyHash []byte) []TXOutput {
|
|||
return UTXOs
|
||||
}
|
||||
|
||||
// GetCount returns the number of transactions in the UTXO set
|
||||
func (u UTXOSet) GetCount() int {
|
||||
// CountTransactions returns the number of transactions in the UTXO set
|
||||
func (u UTXOSet) CountTransactions() int {
|
||||
db := u.Blockchain.db
|
||||
counter := 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue