lib/zold/patch.rb in zold-0.10.5 vs lib/zold/patch.rb in zold-0.10.6

- old
+ new

@@ -35,12 +35,9 @@ @txns = wallet.txns @network = wallet.network end def join(wallet) - if wallet.network != @network - raise "The wallet is from a different network '#{wallet.version}', ours is '#{@network}'" - end negative = @txns.select { |t| t.amount.negative? } max = negative.empty? ? 0 : negative.max_by(&:id).id wallet.txns.each do |txn| next if @txns.find { |t| t == txn } next if