def test_update_commit(bls_bft_replicas, fake_pre_prepare_with_bls): params = create_commit_params(0, 0) params_initial = copy(params) for bls_bft_replica in bls_bft_replicas: params = bls_bft_replica.update_commit(params, fake_pre_prepare_with_bls) assert params != params_initial
def test_update_commit_pool_ledger(bls_bft_replicas, fake_pre_prepare_with_bls_pool_ledger): params = create_commit_params(0, 0) params_initial = copy(params) for bls_bft_replica in bls_bft_replicas: params = bls_bft_replica.update_commit(params, fake_pre_prepare_with_bls_pool_ledger) assert params == params_initial
def test_update_commit_without_bls_crypto_signer(bls_bft_replicas, fake_pre_prepare_with_bls_pool_ledger): params = create_commit_params(0, 0) params_initial = copy(params) for bls_bft_replica in bls_bft_replicas: bls_crypto_signer = bls_bft_replica._bls_bft.bls_crypto_signer bls_bft_replica._bls_bft.bls_crypto_signer = None params = bls_bft_replica.update_commit(params, fake_pre_prepare_with_bls_pool_ledger) bls_bft_replica._bls_bft.bls_crypto_signer = bls_crypto_signer assert params == params_initial
def test_update_commit_pool_ledger(bls_bft_replicas, state_root): params = create_commit_params(0, 0) params_initial = copy(params) for bls_bft_replica in bls_bft_replicas: params = bls_bft_replica.update_commit(params, state_root, POOL_LEDGER_ID) assert params == params_initial
def test_update_commit(bls_bft_replicas, state_root): params = create_commit_params(0, 0) params_initial = copy(params) for bls_bft_replica in bls_bft_replicas: params = bls_bft_replica.update_commit(params, state_root, DOMAIN_LEDGER_ID) assert params != params_initial