Move txpool to the database

Integration could go further (ie, return_tx_to_pool calls should
not be needed anymore, possibly other things).

poolstate.bin is now obsolete.
This commit is contained in:
moneromooo-monero
2017-05-14 14:06:55 +01:00
parent 9ed496bbc5
commit b52abd1370
17 changed files with 847 additions and 289 deletions

View File

@@ -443,7 +443,7 @@ int import_from_file(FakeCore& simple_core, const std::string& import_file_path,
// tx number 1: coinbase tx
// tx number 2 onwards: archived_txs
unsigned int tx_num = 1;
for (const transaction& tx : archived_txs)
for (transaction tx : archived_txs)
{
++tx_num;
// if tx is invalid