mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 06:44:24 +01:00
rbf: consolidate failure paths, use "warnings"
We move over to the new "warning" paradigm, instead of using an "rbf_fail" message. Every failure is either a warning or an error; on warnings we hang up and reconnect later, effectively resetting the state.
This commit is contained in:
@@ -45,7 +45,6 @@ static bool unknown_type(enum peer_wire t)
|
||||
case WIRE_ACCEPT_CHANNEL2:
|
||||
case WIRE_INIT_RBF:
|
||||
case WIRE_ACK_RBF:
|
||||
case WIRE_FAIL_RBF:
|
||||
case WIRE_BLACKLIST_PODLE:
|
||||
#endif
|
||||
return false;
|
||||
@@ -98,7 +97,6 @@ bool is_msg_for_gossipd(const u8 *cursor)
|
||||
case WIRE_ACCEPT_CHANNEL2:
|
||||
case WIRE_INIT_RBF:
|
||||
case WIRE_ACK_RBF:
|
||||
case WIRE_FAIL_RBF:
|
||||
case WIRE_BLACKLIST_PODLE:
|
||||
#endif
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user