OSDN Git Service

feat: add cross-chain output (#56)
[bytom/vapor.git] / wallet / unconfirmed.go
index 0d8a17a..d634d81 100644 (file)
@@ -113,7 +113,7 @@ func (w *Wallet) buildAnnotatedUnconfirmedTx(tx *types.Tx) *query.AnnotatedTx {
 func (w *Wallet) checkRelatedTransaction(tx *types.Tx) bool {
        for _, v := range tx.Outputs {
                var hash [32]byte
-               sha3pool.Sum256(hash[:], v.ControlProgram)
+               sha3pool.Sum256(hash[:], v.ControlProgram())
                if bytes := w.DB.Get(account.ContractKey(hash)); bytes != nil {
                        return true
                }