populate_test_db would previously give back a transaction with N + 1 confirmations when you asked for N. This commit also fixes test_spend_coinbase, which would improperly ask for a transaction with 0 confirmations instead of 1.
populate_test_db would previously give back a transaction with N + 1 confirmations when you asked for N. This commit also fixes test_spend_coinbase, which would improperly ask for a transaction with 0 confirmations instead of 1.