... sync
authorVolker Birk <vb@pep.foundation>
Wed, 29 Aug 2018 21:55:04 +0200
branchsync
changeset 29051856a40d0cb5
parent 2904 de437ca2e367
child 2906 2d5db5aa47d6
...
sync/cond_act_sync.yml2
     1.1 --- a/sync/cond_act_sync.yml2	Wed Aug 29 21:51:35 2018 +0200
     1.2 +++ b/sync/cond_act_sync.yml2	Wed Aug 29 21:55:04 2018 +0200
     1.3 @@ -23,17 +23,7 @@
     1.4      TID_t *t1 = &session->sync_state.keysync.challenge;
     1.5      TID_t *t2 = &session->own_sync_state.challenge;
     1.6  
     1.7 -    assert(t1 && t2);
     1.8 -
     1.9 -    if (!t2) {
    1.10 -        *result = false;
    1.11 -    }
    1.12 -    else {
    1.13 -        if (!t1)
    1.14 -            *result = true;
    1.15 -        else
    1.16 -            *result = _TID_greater(t1, t2);
    1.17 -    }
    1.18 +    *result = _TID_greater(t1, t2);
    1.19  ||
    1.20  
    1.21  condition weAreSecond
    1.22 @@ -41,17 +31,7 @@
    1.23      TID_t *t1 = &session->sync_state.keysync.challenge;
    1.24      TID_t *t2 = &session->own_sync_state.challenge;
    1.25  
    1.26 -    assert(t1 && t2);
    1.27 -
    1.28 -    if (!t1) {
    1.29 -        *result = false;
    1.30 -    }
    1.31 -    else {
    1.32 -        if (!t2)
    1.33 -            *result = true;
    1.34 -        else
    1.35 -            *result = !_TID_greater(t1, t2);
    1.36 -    }
    1.37 +    *result = !_TID_greater(t1, t2);
    1.38  ||
    1.39  
    1.40  condition partnerIsGrouped