From 337a63782586daa2a2f80ccc1abfcb406e1186b1 Mon Sep 17 00:00:00 2001 From: Ivan Kuznetsov Date: Mon, 18 Sep 2017 10:41:36 +0700 Subject: [PATCH] Rename UTXOSet.GetCount to UTXOSet.CountTransactions --- cli_reindexutxo.go | 2 +- utxo_set.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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