From 8cc066b8f32b94c08e3dc793756070502c66d342 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Fri, 27 Jun 2014 15:05:00 -0500 Subject: [PATCH] Exclude locked outputs for listunspent. Fixes #104. --- acctmgr.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acctmgr.go b/acctmgr.go index 4074a8e..6e6dd86 100644 --- a/acctmgr.go +++ b/acctmgr.go @@ -974,6 +974,9 @@ func (am *AccountManager) ListUnspent(minconf, maxconf int, continue } } + if a.LockedOutpoint(*credit.OutPoint()) { + continue + } _, addrs, _, _ := credit.Addresses(activeNet.Params) if filter {