as a sender or receiver if i use --bip78=false, to me that would imply also not payjoinining with bip 78 peers, but the implemented behavior is to choose the default version. renaming these to prefer-bip78 etc might be more descriptive, but perhaps the entire meaning of these flags should be reconsidered given the recent shift towards discouraging bip 78 more
Originally posted by @nothingmuch in #1530
Current state
-
--bip78 (and --bip77) is a marker flag - true if passed, no value accepted:
$ payjoin-cli --bip78=false receive 50000
error: unexpected value 'false' for '--bip78' found; no more were expected
-
Both flags coexist but are mutually exclusive in practice, enforced by a manual check in Config::determine_version:
$ payjoin-cli --bip77 --bip78 receive 50000
Error: Multiple version flags specified. Please use only one of: --bip77, --bip78
Proposal
Given the recent shift towards discouraging bip 78, we can simplify the flags by dropping --bip77:
- default to v2
- switch to v1 only when
--bip78 is passed
Like:
payjoin-cli receive 50000 # default: v2
payjoin-cli --bip78 receive 50000 # legacy: v1
Scope: changes only in the CLI args and Config::new.
Happy to PR once I get a concept ACK.
Originally posted by @nothingmuch in #1530
Current state
--bip78(and--bip77) is a marker flag - true if passed, no value accepted:Both flags coexist but are mutually exclusive in practice, enforced by a manual check in
Config::determine_version:Proposal
Given the recent shift towards discouraging bip 78, we can simplify the flags by dropping
--bip77:--bip78is passedLike:
Scope: changes only in the CLI args and
Config::new.Happy to PR once I get a concept ACK.