Rename UTXOSet.GetCount to UTXOSet.CountTransactions

This commit is contained in:
Ivan Kuznetsov 2017-09-18 10:41:36 +07:00
parent 8ef0f2c86b
commit 337a637825
2 changed files with 3 additions and 3 deletions

View File

@ -7,6 +7,6 @@ func (cli *CLI) reindexUTXO() {
UTXOSet := UTXOSet{bc} UTXOSet := UTXOSet{bc}
UTXOSet.Reindex() UTXOSet.Reindex()
count := UTXOSet.GetCount() count := UTXOSet.CountTransactions()
fmt.Printf("Done! There are %d transactions in the UTXO set.\n", count) fmt.Printf("Done! There are %d transactions in the UTXO set.\n", count)
} }

View File

@ -73,8 +73,8 @@ func (u UTXOSet) FindUTXO(pubKeyHash []byte) []TXOutput {
return UTXOs return UTXOs
} }
// GetCount returns the number of transactions in the UTXO set // CountTransactions returns the number of transactions in the UTXO set
func (u UTXOSet) GetCount() int { func (u UTXOSet) CountTransactions() int {
db := u.Blockchain.db db := u.Blockchain.db
counter := 0 counter := 0