Skip to content

Commit a8b68c9

Browse files
committed
BOLT update: remove INVALID_REALM error.
This is obsolete (since modern onions) and so removed from spec. We should not set it, and don't need to handle it specially. Signed-off-by: Rusty Russell <[email protected]>
1 parent b06db3f commit a8b68c9

File tree

5 files changed

+2
-7
lines changed

5 files changed

+2
-7
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ CCANDIR := ccan
2626

2727
# Where we keep the BOLT RFCs
2828
BOLTDIR := ../bolts/
29-
DEFAULT_BOLTVERSION := 93b7ee031b50acd59967a105f1326176a37628f9
29+
DEFAULT_BOLTVERSION := 6a51861d93ad617438fe24195768e2742d7708ac
3030
# Can be overridden on cmdline.
3131
BOLTVERSION := $(DEFAULT_BOLTVERSION)
3232

common/sphinx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ struct onionpacket *parse_onionpacket(const tal_t *ctx,
219219

220220
assert(max == 0);
221221
if (cursor == NULL) {
222-
*failcode = WIRE_INVALID_REALM;
222+
*failcode = WIRE_INVALID_ONION_HMAC;
223223
return tal_free(dest);
224224
}
225225

plugins/libplugin-pay.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,6 @@ handle_final_failure(struct command *cmd,
14941494
goto strange_error;
14951495

14961496
case WIRE_INVALID_ONION_PAYLOAD:
1497-
case WIRE_INVALID_REALM:
14981497
case WIRE_PERMANENT_NODE_FAILURE:
14991498
case WIRE_TEMPORARY_NODE_FAILURE:
15001499
case WIRE_REQUIRED_NODE_FEATURE_MISSING:
@@ -1597,7 +1596,6 @@ handle_intermediate_failure(struct command *cmd,
15971596
case WIRE_TEMPORARY_NODE_FAILURE:
15981597
case WIRE_REQUIRED_NODE_FEATURE_MISSING:
15991598
case WIRE_INVALID_ONION_PAYLOAD:
1600-
case WIRE_INVALID_REALM:
16011599
case WIRE_INVALID_ONION_BLINDING:
16021600
tal_arr_expand(&root->excluded_nodes, *errnode);
16031601
goto error;
@@ -2569,7 +2567,6 @@ static bool payment_can_retry(struct payment *p)
25692567
case WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS:
25702568
case WIRE_INVALID_ONION_PAYLOAD:
25712569
case WIRE_INVALID_ONION_VERSION:
2572-
case WIRE_INVALID_REALM:
25732570
case WIRE_MPP_TIMEOUT:
25742571
case WIRE_PERMANENT_NODE_FAILURE:
25752572
case WIRE_REQUIRED_NODE_FEATURE_MISSING:

plugins/renepay/routefail.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ static struct command_result *handle_failure(struct routefail *r)
303303
case WIRE_PERMANENT_NODE_FAILURE:
304304
case WIRE_REQUIRED_NODE_FEATURE_MISSING:
305305
case WIRE_TEMPORARY_NODE_FAILURE:
306-
case WIRE_INVALID_REALM:
307306
case WIRE_INVALID_ONION_PAYLOAD:
308307

309308
if (node_type == FINAL_NODE) {

wire/onion_wire.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ tlvdata,encrypted_data_tlv,payment_constraints,max_cltv_expiry,u32,
3535
tlvdata,encrypted_data_tlv,payment_constraints,htlc_minimum_msat,tu64,
3636
tlvtype,encrypted_data_tlv,allowed_features,14
3737
tlvdata,encrypted_data_tlv,allowed_features,features,byte,...
38-
msgtype,invalid_realm,PERM|1
3938
msgtype,temporary_node_failure,NODE|2
4039
msgtype,permanent_node_failure,PERM|NODE|2
4140
msgtype,required_node_feature_missing,PERM|NODE|3

0 commit comments

Comments
 (0)