Commit Graph
7 Commits
Author SHA1 Message Date
moneromooo-moneroandwowario c5d00f4e29 blockchain_db: allow getting output keys without commitment
Since the commitment has to be calculated for non rct outputs,
it slows down a lot unnecessarily if we don't need it
2019-01-18 12:31:34 +03:00
binaryFateandwowario 64c7ced3ed Update 2019 copyright 2019-01-16 00:31:13 +03:00
moneromooo-moneroandwowario 314e24d0ff blockchain_db: speedup tx output gathering
We know all the data we'll want for getblocks.bin is contiguous
2019-01-15 23:44:32 +03:00
moneroexamplesandwowario 41e12d4d29 Make get_output_key method const
get_output_key method is commonly used when working with txs and their key images. Because the method is not const, passing blockchain object though const& or pointers to const is not possible in this context. This is especially problematic in external projects (e.g., projects in moneroexamples) that use monero C++ api to operate on the blockchain and txs.

Thus, having get_output_key method will simplify moving blockchain object around through const references and pointers to const objects.
2019-01-08 21:36:17 +03:00
moneromooo-monero 17b45725af Outputs where all amounts are known spent can now be pruned
Only for pre rct for obvious reasons.

Note: DO NOT use a known spent list which includes outputs
which are not known spent. If the list includes any output
that's just strongly thought to be spent, but not provably
so, you risk finding yourself unable to sync past the point
where that output is spent.

I estimate only 200 MB saved on current mainnet though,
unless the new blackballing rule unearths a good amount of
large-amount-set extra spent outs.
2018-11-27 15:45:42 +00:00
moneromooo-monero fc98f7a0a1 rpc: speedup get_outs.bin 2018-11-26 18:56:23 +00:00
moneromooo-monero 31d80027b5 tests: add unit tests for get_output_distribution 2018-11-16 19:21:45 +00:00