From 438c0627faf7de452a44a9aeac1a4ac482433c78 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Wed, 23 Nov 2016 14:24:05 +0800 Subject: [PATCH] finding block of specific timestamp or first block after the timestamp --- src/mylmdb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mylmdb.h b/src/mylmdb.h index 12720db..346e2c8 100644 --- a/src/mylmdb.h +++ b/src/mylmdb.h @@ -451,7 +451,7 @@ namespace xmreg // set cursor the the first item - if (cr.get(key_to_find, info_val, MDB_SET)) + if (cr.get(key_to_find, info_val, MDB_SET_RANGE)) { out_infos.push_back(*(info_val.data()));