mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
Fix typos
This commit is contained in:
committed by
Christian Decker
parent
d4aadd5e26
commit
0bf1b01425
@@ -108,7 +108,7 @@ forget to set it on one path.
|
|||||||
`tal` and `tal_arr` to `talz` and `tal_arrz` for this reason, and
|
`tal` and `tal_arr` to `talz` and `tal_arrz` for this reason, and
|
||||||
initialize only the fields you expect to be used.
|
initialize only the fields you expect to be used.
|
||||||
|
|
||||||
Similarly, you can use `memcheck(mem, len)` to explicity assert that
|
Similarly, you can use `memcheck(mem, len)` to explicitly assert that
|
||||||
memory should have been initialized, rather than having valgrind
|
memory should have been initialized, rather than having valgrind
|
||||||
trigger later. We use this when placing things on queues, for example.
|
trigger later. We use this when placing things on queues, for example.
|
||||||
|
|
||||||
|
|||||||
@@ -1044,7 +1044,7 @@ static struct io_plan *disconnect_peer(struct io_conn *conn, struct daemon *daem
|
|||||||
|
|
||||||
peer = find_peer(daemon, &id);
|
peer = find_peer(daemon, &id);
|
||||||
if (peer && peer->local) {
|
if (peer && peer->local) {
|
||||||
/* This peer is local to this (gossipd) dameon */
|
/* This peer is local to this (gossipd) daemon */
|
||||||
io_close(peer->local->conn);
|
io_close(peer->local->conn);
|
||||||
msg = towire_gossipctl_peer_disconnect_reply(NULL);
|
msg = towire_gossipctl_peer_disconnect_reply(NULL);
|
||||||
daemon_conn_send(&daemon->master, take(msg));
|
daemon_conn_send(&daemon->master, take(msg));
|
||||||
|
|||||||
@@ -622,7 +622,7 @@ static void gossipd_getpeers_complete(struct subd *gossip, const u8 *msg,
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (size_t i = 0; i < tal_count(nodes); i++) {
|
for (size_t i = 0; i < tal_count(nodes); i++) {
|
||||||
/* If no addresses, then this node announcement hasn't been recieved yet
|
/* If no addresses, then this node announcement hasn't been received yet
|
||||||
* So no alias information either.
|
* So no alias information either.
|
||||||
*/
|
*/
|
||||||
if (nodes[i]->addresses != NULL && pubkey_eq(&nodes[i]->nodeid, &p->id)) {
|
if (nodes[i]->addresses != NULL && pubkey_eq(&nodes[i]->nodeid, &p->id)) {
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ char *dbmigrations[] = {
|
|||||||
"CREATE INDEX channel_idx ON htlc_sigs (channelid)",
|
"CREATE INDEX channel_idx ON htlc_sigs (channelid)",
|
||||||
/* Get rid of OPENINGD entries; we don't put them in db any more */
|
/* Get rid of OPENINGD entries; we don't put them in db any more */
|
||||||
"DELETE FROM channels WHERE state=1",
|
"DELETE FROM channels WHERE state=1",
|
||||||
/* Keep track of db ugprades, for debugging */
|
/* Keep track of db upgrades, for debugging */
|
||||||
"CREATE TABLE db_upgrades (upgrade_from INTEGER, lightning_version TEXT);",
|
"CREATE TABLE db_upgrades (upgrade_from INTEGER, lightning_version TEXT);",
|
||||||
/* We used not to clean up peers when their channels were gone. */
|
/* We used not to clean up peers when their channels were gone. */
|
||||||
"DELETE FROM peers WHERE id NOT IN (SELECT peer_id FROM channels);",
|
"DELETE FROM peers WHERE id NOT IN (SELECT peer_id FROM channels);",
|
||||||
|
|||||||
@@ -1069,7 +1069,7 @@ int wallet_extract_owned_outputs(struct wallet *w, const struct bitcoin_tx *tx,
|
|||||||
* sure we actually track its
|
* sure we actually track its
|
||||||
* blockheight. This can happen when we grab
|
* blockheight. This can happen when we grab
|
||||||
* the output from a transaction we created
|
* the output from a transaction we created
|
||||||
* outselves. */
|
* ourselves. */
|
||||||
if (block)
|
if (block)
|
||||||
wallet_output_confirm(w, &utxo->txid, utxo->outnum, block->height);
|
wallet_output_confirm(w, &utxo->txid, utxo->outnum, block->height);
|
||||||
tal_free(utxo);
|
tal_free(utxo);
|
||||||
|
|||||||
Reference in New Issue
Block a user