Update cli.go

update the function getBalance based on the update of the function NewBlockchain.
This commit is contained in:
daleboy 2020-10-15 22:30:54 +08:00 committed by GitHub
parent bf64f33069
commit 67a573b46a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
cli.go
View File

@ -18,7 +18,7 @@ func (cli *CLI) createBlockchain(address string) {
}
func (cli *CLI) getBalance(address string) {
bc := NewBlockchain(address)
bc := NewBlockchain()
defer bc.db.Close()
balance := 0