From 36e67831eb2b0864be7dfbaca46c147641d1bfcc Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 11 Nov 2014 11:29:46 -0800 Subject: [PATCH] fix read_addr(). --- src/bitcoindjs.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 630c9560..5f3efc1a 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -5759,7 +5759,7 @@ read_addr(const std::string addr) { leveldb::Status status = leveldb::DB::Open(options, path.string(), &pdb); if (!status.ok()) { - break; + return head; } leveldb::Slice start = "t"; @@ -5827,7 +5827,9 @@ read_addr(const std::string addr) { goto found; } } + found: + continue; } }