anchor.diff:                      end, {Interval, Items, LeafNAcc}, LeafNodes),
       merkle_resolve_leaves_noninit(TL, Bin, Dest, SID, OwnerL, NInterval, NItems,
                                     NLeafNAcc);
  -merkle_resolve_leaves_noninit([{leaf, leaf, SigSize, LeafNode} | TL], Bin,
  +merkle_resolve_leaves_noninit([{leaf, leaf, SigSize0, LeafNode} | TL], Bin,
                                 Dest, SID, OwnerL, Interval, Items, LeafNAcc) ->
       ?ASSERT(merkle_tree:is_leaf(LeafNode)),
       % TODO: make extra version binary for better compression (?)
  
positive.code:                         DestRRPid, Stats, OwnerL, SendKeys) ->
      merkle_resolve_req_keys_noninit(TL, BinKeyList, DestRRPid, Stats, OwnerL,
                                      SendKeys);
  merkle_resolve_req_keys_noninit([{leaf, leaf, SigSize, LeafNode} | TL],
                          [[_|_] = ReqKeys | BinKeyList],
                          DestRRPid, Stats, OwnerL, SendKeys) ->
      ReqSet = gb_sets:from_list(ReqKeys),
      SendKeys1 = [Key || {Key, _Version} <- merkle_tree:get_bucket(LeafNode),
                          gb_sets:is_member(compress_key(Key, SigSize),
                                            ReqSet)] ++ SendKeys,
  
negative.code:     merkle_resolve_leaves_init(TL, HashesT, DestRRPid, DestRCPid, Stats, OwnerL,
                                 NInterval, ToSend, ToReq, ToResolve, ResolveNonEmpty,
                                 NSyncItemCount, NLeafNAcc);
  merkle_resolve_leaves_init([{leaf, leaf, SigSize0, LeafNode} | TL],
                             <<BSize:8/integer-unit:1, HashesT/bitstring>>,
                             DestRRPid, DestRCPid, Stats, OwnerL, Interval,
                             ToSend, ToReq, ToResolve, ResolveNonEmpty, SyncItemCount, LeafNAcc) ->
      ?ASSERT(merkle_tree:is_leaf(_LeafNode)),
      {SigSize, VSize} = align_bitsize(SigSize0, get_min_version_bits()),
      OBucketBinSize = BSize * (SigSize + VSize),
      <<OBucketBin:OBucketBinSize/bitstring, NHashes/bitstring>> = HashesT,
      OBucketTree = decompress_kv_list(OBucketBin, gb_trees:empty(), SigSize, VSize),
  