lib/zold/patch.rb in zold-0.26.12 vs lib/zold/patch.rb in zold-0.26.13

- old
+ new

@@ -124,12 +124,15 @@ @log.error("Paying wallet #{txn.bnf} file is absent even after PULL: \"#{txn.to_text}\"") next end end if @wallets.acq(txn.bnf, &:exists?) && !@wallets.acq(txn.bnf) { |p| p.includes_negative?(txn.id, wallet.id) } - @log.debug("The beneficiary #{@wallets.acq(txn.bnf, &:mnemo)} of #{@id} \ + yield(txn) + unless @wallets.acq(txn.bnf) { |p| p.includes_negative?(txn.id, wallet.id) } + @log.debug("The beneficiary #{@wallets.acq(txn.bnf, &:mnemo)} of #{@id} \ doesn't have this transaction: \"#{txn.to_text}\"") - next + next + end end end @txns << txn added += 1 if txn.amount.negative?