Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

add test for multikeys #440

Merged
merged 5 commits into from
Oct 16, 2020
Merged

add test for multikeys #440

merged 5 commits into from
Oct 16, 2020

Conversation

evanmcc
Copy link
Contributor

@evanmcc evanmcc commented Jun 26, 2020

BinPub4 = libp2p_crypto:pubkey_to_bin(Pub4),
BinPub5 = libp2p_crypto:pubkey_to_bin(Pub5),

Txn6 = vars(#{?use_multi_keys => true}, 2, Priv),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these being done in discrete var updates?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to make sure that that transition works safely, just in case it happens. it's done the other way, as an atomic update, in the election test.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, that's not true, will change this one.

Txn7 = blockchain_txn_vars_v1:proof(Txn7_1, Proof7),
_ = [ok = ct_rpc:call(M, blockchain_worker, submit_txn, [Txn7]) || M <- Miners],

ct:pal("transitioned to multikey"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use wait_for_chain_var_update here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, fixing

@Vagabond
Copy link
Member

miner_blockchain_SUITE:master_key_test failed on line 737
Reason: {badmatch,false}

@evanmcc evanmcc merged commit a90b2bd into master Oct 16, 2020
@evanmcc evanmcc deleted the pevm/multisig branch October 16, 2020 21:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants