diff --git a/plugins/bkpr/recorder.c b/plugins/bkpr/recorder.c index 0d8ab5b47..a3561b02b 100644 --- a/plugins/bkpr/recorder.c +++ b/plugins/bkpr/recorder.c @@ -342,7 +342,7 @@ struct fee_sum **find_account_onchain_fees(const tal_t *ctx, ", CAST(SUM(debit) AS BIGINT) as debit" " FROM onchain_fees" " WHERE account_id = ?" - " GROUP BY txid" + " GROUP BY txid, update_count" " ORDER BY txid, update_count")); db_bind_u64(stmt, 0, acct->db_id);