OSDN Git Service

update walletstorer
authorChengcheng Zhang <943420582@qq.com>
Fri, 28 Jun 2019 11:16:28 +0000 (19:16 +0800)
committerChengcheng Zhang <943420582@qq.com>
Fri, 28 Jun 2019 11:16:28 +0000 (19:16 +0800)
wallet/store.go

index e8da9a6..9cf094c 100644 (file)
@@ -31,12 +31,12 @@ type WalletStorer interface {
        DeleteContractUTXO(bc.Hash)
        SetStandardUTXO(bc.Hash, *acc.UTXO) error
        SetContractUTXO(bc.Hash, *acc.UTXO) error
-       GetWalletInfo() []byte
-       SetWalletInfo([]byte)
+       GetWalletInfo() []byte // need move database.NewWalletStore in wallet package
+       SetWalletInfo([]byte)  // need move database.NewWalletStore in wallet package
        DeleteWalletTransactions()
        DeleteWalletUTXOs()
        GetAccountUTXOs(string) ([]*acc.UTXO, error)
-       SetRecoveryStatus([]byte, []byte)
+       SetRecoveryStatus([]byte, []byte) // recoveryManager.state isn't exported outside
        DeleteRecoveryStatus([]byte)
-       GetRecoveryStatus([]byte) []byte
+       GetRecoveryStatus([]byte) []byte // recoveryManager.state isn't exported outside
 }