wallet: load route_nodes and route_channels when seeking a particular entry.

This got missed when 299b280f7 got merged.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-02-17 15:10:43 +10:30
parent 4fccbbae69
commit 097b9345eb

View File

@ -1561,7 +1561,7 @@ wallet_payment_list(const tal_t *ctx,
wallet->db,
"SELECT id, status, destination, "
"msatoshi, payment_hash, timestamp, payment_preimage, "
"path_secrets "
"path_secrets, route_nodes, route_channels "
"FROM payments "
"WHERE payment_hash = ?;");
sqlite3_bind_sha256(stmt, 1, payment_hash);