Simplify invoices and requests.
- We need only two types: PR_TYPE_ONCHAIN and PR_TYPE_LN - BIP70 is no longer a type, but an optional field in the dict - Invoices in the wallet are indexed by a hash of their serialized list of outputs. - Requests are still indexed by address, because we never generate Paytomany requests. - Add 'clear_invoices' command to CLI - Add 'save invoice' button to Qt
This commit is contained in:
@@ -74,8 +74,7 @@ base_units_list = ['BTC', 'mBTC', 'bits', 'sat'] # list(dict) does not guarante
|
||||
DECIMAL_POINT_DEFAULT = 5 # mBTC
|
||||
|
||||
# types of payment requests
|
||||
PR_TYPE_ADDRESS = 0
|
||||
PR_TYPE_BIP70= 1
|
||||
PR_TYPE_ONCHAIN = 0
|
||||
PR_TYPE_LN = 2
|
||||
|
||||
# status of payment requests
|
||||
|
||||
Reference in New Issue
Block a user