mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-21 23:18:13 +00:00
chore(common/defs): replace consensus_branch_id with overwintered bool flag
[no changelog]
This commit is contained in:
parent
1ec62e9c86
commit
95daa2fda3
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 95,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 40,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": true,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": true,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 35,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 35,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": {
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": true,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 35,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": true,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": true,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,12 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": true,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": {
|
||||
"1": 0,
|
||||
"2": 0,
|
||||
"3": 1537743641,
|
||||
"4": 1991772603
|
||||
},
|
||||
"overwintered": true,
|
||||
"extra_data": true,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,12 +37,7 @@
|
||||
"max_address_length": 95,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": {
|
||||
"1": 0,
|
||||
"2": 0,
|
||||
"3": 1537743641,
|
||||
"4": 733220448
|
||||
},
|
||||
"overwintered": true,
|
||||
"extra_data": true,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": true,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": true,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 35,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 35,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 47,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": true,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"confidential_assets": null,
|
||||
"timestamp": true,
|
||||
"extra_data": false
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 36,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -40,7 +40,7 @@
|
||||
"max_address_length": 34,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,13 +37,7 @@
|
||||
"max_address_length": 95,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": {
|
||||
"1": 0,
|
||||
"2": 0,
|
||||
"3": 1537743641,
|
||||
"4": 4122551051,
|
||||
"5": 3268858036
|
||||
},
|
||||
"overwintered": true,
|
||||
"extra_data": true,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,13 +37,7 @@
|
||||
"max_address_length": 95,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": {
|
||||
"1": 0,
|
||||
"2": 0,
|
||||
"3": 1537743641,
|
||||
"4": 4122551051,
|
||||
"5": 3268858036
|
||||
},
|
||||
"overwintered": true,
|
||||
"extra_data": true,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -37,7 +37,7 @@
|
||||
"max_address_length": 95,
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"overwintered": false,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
|
@ -136,9 +136,6 @@ btc_names = ["Bitcoin", "Testnet", "Regtest"]
|
||||
coins_btc = [c for c in supported_on("trezor2", bitcoin) if c.name in btc_names]
|
||||
coins_alt = [c for c in supported_on("trezor2", bitcoin) if c.name not in btc_names]
|
||||
|
||||
for c in coins_btc + coins_alt:
|
||||
c.overwintered = bool(c.consensus_branch_id)
|
||||
|
||||
%>\
|
||||
def by_name(name: str) -> CoinInfo:
|
||||
% for coin in coins_btc:
|
||||
|
@ -51,7 +51,7 @@ const CoinInfo coins[COINS_COUNT] = {
|
||||
.curve = &${c.curve_name}_info,
|
||||
.extra_data = ${c_bool(c.extra_data)},
|
||||
.timestamp = ${c_bool(c.timestamp)},
|
||||
.overwintered = ${c_bool(c.consensus_branch_id)},
|
||||
.overwintered = ${c_bool(c.overwintered)},
|
||||
},
|
||||
% endfor
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user