mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-17 20:14:38 +01:00
topology: Notify gossipd about spends after processing the block
We defer the notification to gossipd till the end of the spends. By itself not a huge change, but it allows us to later migrate to doing updates blindly and using the DB as our ground truth. It also allows us to simplify the `wallet_outpoint_spend` semantics to not return two values in the next commit.
This commit is contained in:
committed by
Rusty Russell
parent
eeb6e8091b
commit
cab52f1197
10
wallet/db_sqlite3_sqlgen.c
generated
10
wallet/db_sqlite3_sqlgen.c
generated
@@ -1466,12 +1466,6 @@ struct db_query db_sqlite3_queries[] = {
|
||||
.placeholders = 3,
|
||||
.readonly = false,
|
||||
},
|
||||
{
|
||||
.name = "SELECT blockheight, txindex FROM utxoset WHERE txid = ? AND outnum = ?",
|
||||
.query = "SELECT blockheight, txindex FROM utxoset WHERE txid = ? AND outnum = ?",
|
||||
.placeholders = 2,
|
||||
.readonly = true,
|
||||
},
|
||||
{
|
||||
.name = "INSERT INTO utxoset ( txid, outnum, blockheight, spendheight, txindex, scriptpubkey, satoshis) VALUES(?, ?, ?, ?, ?, ?, ?);",
|
||||
.query = "INSERT INTO utxoset ( txid, outnum, blockheight, spendheight, txindex, scriptpubkey, satoshis) VALUES(?, ?, ?, ?, ?, ?, ?);",
|
||||
@@ -1642,10 +1636,10 @@ struct db_query db_sqlite3_queries[] = {
|
||||
},
|
||||
};
|
||||
|
||||
#define DB_SQLITE3_QUERY_COUNT 272
|
||||
#define DB_SQLITE3_QUERY_COUNT 271
|
||||
|
||||
#endif /* HAVE_SQLITE3 */
|
||||
|
||||
#endif /* LIGHTNINGD_WALLET_GEN_DB_SQLITE3 */
|
||||
|
||||
// SHA256STAMP:9c0282186a89a37a232b8a4f34dceabaf5b53b7cc5c3bc24eb4e53967662cb6f
|
||||
// SHA256STAMP:93c3f12a788012003366f01547f6059bc7894cddd9cf3b046b908f5458452da7
|
||||
|
||||
Reference in New Issue
Block a user