HomePhabricator

rpc: Fix leveldb iterator leak, and flush before `gettxoutsetinfo`
33dfbf57d348Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

rpc: Fix leveldb iterator leak, and flush before gettxoutsetinfo

This fixes an iterator leak resulting in

bitcoind: db/version_set.cc:789: leveldb::VersionSet::~VersionSet(): Assertion `dummy_versions_.next_ == &dummy_versions_' failed."

exception on shutdown.

Also make sure to flush pcoinsTip before calling GetStats() to make
sure we apply them to the current height.

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Oct 21 2014, 14:08
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING9acbb4180a38: qt: small English language updates from translators
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rSTAGING33dfbf57d348: rpc: Fix leveldb iterator leak, and flush before `gettxoutsetinfo` (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Oct 21 2014, 14:16