for _, cp := range cps {
if cp.AccountID == accountID {
sha3pool.Sum256(hash[:], cp.ControlProgram)
- m.store.DeleteRawProgram(hash)
+ m.store.DeleteControlProgram(hash)
}
}
GetAccountIndex([]chainkd.XPub) uint64
DeleteAccountByAccountAlias(string)
DeleteAccountByAccountID(string)
- DeleteRawProgram(common.Hash)
+ DeleteControlProgram(common.Hash)
DeleteBip44ContractIndex(string)
DeleteContractIndex(string)
GetContractIndex(string) uint64
}
}
-// DeleteRawProgram delete raw control program by hash
-func (store *AccountStore) DeleteRawProgram(hash common.Hash) {
+// DeleteControlProgram delete raw control program by hash
+func (store *AccountStore) DeleteControlProgram(hash common.Hash) {
if store.batch == nil {
store.accountDB.Delete(ContractKey(hash))
} else {