diff --git a/cli_reindexutxo.go b/cli_reindexutxo.go index 622d0df..74d3b03 100644 --- a/cli_reindexutxo.go +++ b/cli_reindexutxo.go @@ -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) } diff --git a/utxo_set.go b/utxo_set.go index 96cea33..44ff27f 100644 --- a/utxo_set.go +++ b/utxo_set.go @@ -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