diff --git a/wallet/walletrpc.c b/wallet/walletrpc.c index 3e63afdd9..5f4ae86a7 100644 --- a/wallet/walletrpc.c +++ b/wallet/walletrpc.c @@ -61,6 +61,7 @@ static void wallet_withdrawal_broadcast(struct bitcoind *bitcoind, /* Note normally, change_satoshi == withdraw->changesatoshi, but * not if we're actually making a payment to ourselves! */ + assert(change_satoshi >= withdraw->changesatoshi); struct json_result *response = new_json_result(cmd); json_object_start(response, NULL);