Ejemplo n.º 1
0
 /// <summary>
 /// Returns true if this output is to an address we have the keys for in the wallet.
 /// </summary>
 public bool IsMine(Wallet wallet)
 {
     try
     {
         var pubkeyHash = ScriptPubKey.PubKeyHash;
         return wallet.IsPubKeyHashMine(pubkeyHash);
     }
     catch (ScriptException e)
     {
         _log.ErrorFormat("Could not parse tx output script: {0}", e);
         return false;
     }
 }