BIPF was recently fixed because it had some wrong logic, but then the updated-fixed BIPF broke tests in ssb-db2. That's because we are using bipf.compareString() in JITDB for comparing things that are not strings, e.g. kvt.meta.private.
We should update BIPF in JITDB and replace bipf.compareString() with bipf.compare() wherever applicable. We should also be careful to do bipf.allocAndEncode() instead of Buffer.from() for the opData.value.
Full context here: https://github.com/ssb-ngi-pointer/ssb-db2/pull/277
BIPF was recently fixed because it had some wrong logic, but then the updated-fixed BIPF broke tests in ssb-db2. That's because we are using
bipf.compareString()
in JITDB for comparing things that are not strings, e.g.kvt.meta.private
.We should update BIPF in JITDB and replace
bipf.compareString()
withbipf.compare()
wherever applicable. We should also be careful to dobipf.allocAndEncode()
instead ofBuffer.from()
for the opData.value.