1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

chore(common/defs): replace consensus_branch_id with overwintered bool flag

[no changelog]
This commit is contained in:
Pavol Rusnak 2022-06-07 17:28:00 +02:00 committed by matejcik
parent 1ec62e9c86
commit 95daa2fda3
60 changed files with 59 additions and 84 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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": {

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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:

View File

@ -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
};