Ejemplo n.º 1
0
def test_suspicious_on_wrong_sub_seq_no(fake_replica, sdk_wallet_steward):
    reqs, pp = create_preprepare(fake_replica, sdk_wallet_steward, 10)
    pp.sub_seq_no = 1
    assert PP_SUB_SEQ_NO_WRONG == fake_replica._apply_pre_prepare(
        pp, 'SomeNode')
Ejemplo n.º 2
0
def test_suspicious_on_not_final(fake_replica, sdk_wallet_steward):
    reqs, pp = create_preprepare(fake_replica, sdk_wallet_steward, 10)
    pp.final = False
    assert PP_NOT_FINAL == fake_replica._apply_pre_prepare(pp, 'SomeNode')
def test_order_reqIdr(replica, sdk_wallet_steward):
    reqs, pp = create_preprepare(replica, sdk_wallet_steward, REQ_COUNT)
    assert pp.reqIdr == [res.key for res in reqs]