2017-09-16 22:30:30 -05:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
2017-09-30 22:42:34 -05:00
|
|
|
func (cli *CLI) reindexUTXO(nodeID string) {
|
|
|
|
bc := NewBlockchain(nodeID)
|
2017-09-16 22:30:30 -05:00
|
|
|
UTXOSet := UTXOSet{bc}
|
|
|
|
UTXOSet.Reindex()
|
|
|
|
|
2017-09-17 22:41:36 -05:00
|
|
|
count := UTXOSet.CountTransactions()
|
2017-09-17 00:45:53 -05:00
|
|
|
fmt.Printf("Done! There are %d transactions in the UTXO set.\n", count)
|
2017-09-16 22:30:30 -05:00
|
|
|
}
|