Riccardo Spagni
a80978e699
Merge pull request #5015
...
6f2081f8
cryptonote_core: revert extra_tx_map (moneromooo-monero)
5 years ago
Riccardo Spagni
9d57ee9ff6
Merge pull request #4984
...
008647d7
blockchain_db: speedup tx output gathering (moneromooo-monero)
5 years ago
luigi1111
c7af379d29
Merge pull request #4940
...
9e64a71
blockchain: call deinit in dtor (moneromooo-monero)
6 years ago
moneromooo-monero
6f2081f867
cryptonote_core: revert extra_tx_map
...
While the lookups are faster, the zeroCommit calls have to be
done again when storing the new outputs in the db, which ends
up making the whole thing slower after all, and the ways this
can be cached aren't very nice code wise, so let's forget it
since the gains aren't very large anyway.
6 years ago
moneromooo-monero
008647d7eb
blockchain_db: speedup tx output gathering
...
We know all the data we'll want for getblocks.bin is contiguous
6 years ago
Riccardo Spagni
83684ea515
Merge pull request #4909
...
756684bb
blockchain: avoid unnecessary DB lookups when syncing (moneromooo-monero)
6 years ago
moneromooo-monero
9e64a71e7d
blockchain: call deinit in dtor
...
This ensures the io service that runs in another thread cannot
access data after it's deleted
6 years ago
Jason Wong
dc1c12528d
add command pop_blocks
...
add new public method to Blockchain and update according to code review
update after review: better lock/unlock, try catch and coding style
6 years ago
moneromooo-monero
756684bb28
blockchain: avoid unnecessary DB lookups when syncing
...
Some of the inputs for block in a span will be from other earlier
blocks in that span. Keep track of those outputs so we don't have
to look them up again after those early blocks are added to the
blockchain.
6 years ago
moneromooo-monero
5808530f54
blockchain: remove unused output_scan_worker parameter
6 years ago
moneromooo-monero
6ecc99ad1f
core: avoid unnecessary tx/blob conversions
6 years ago
Riccardo Spagni
056a58d13f
Merge pull request #4536
...
fd62b6e7
blocks: use auto-generated .c files instead of 'LD -r -b binary' (xiphon)
6 years ago
Riccardo Spagni
557c17e206
Merge pull request #4408
...
341b3931
cryptonote_core: warn when the block rate deviates from expectations (moneromooo-monero)
6 years ago
xiphon
fd62b6e79f
blocks: use auto-generated .c files instead of 'LD -r -b binary'
6 years ago
Riccardo Spagni
ac5674524a
Revert "Merge pull request #4472"
...
This reverts commit 79d46c4d55
, reversing
changes made to c9fc61dbb5
.
6 years ago
xiphon
02d3ef7bda
blocks: use auto-generated .c files instead of 'LD -r -b binary'
6 years ago
Riccardo Spagni
83d8f03c23
Merge pull request #4333
...
73403004
add --block-notify to monerod and --tx-notify to monero-wallet-{cli,rpc} (moneromooo-monero)
6 years ago
moneromooo-monero
341b3931ed
cryptonote_core: warn when the block rate deviates from expectations
...
The warning threshold is set to allow a false positive every
ten days on average.
6 years ago
moneromooo-monero
be001326d1
remove obsolete daemon selection of fake outs and old tx construction
6 years ago
moneromooo-monero
5ffb2ff9b7
v8: per byte fee, pad bulletproofs, fixed 11 ring size
6 years ago
luigi1111
4a4ea78ecd
Merge pull request #4204
...
b278b83
core: sync database based on bytes added, not blocks added (moneromooo-monero)
6 years ago
moneromooo-monero
82d1b74500
core: cache block template where possible
...
This avoids constant rechecking of the same things each time
a miner asks for the block template. The tx pool maintains
a cookie to allow users to detect when the pool state changed,
which means the block template needs rebuilding.
6 years ago
moneromooo-monero
b278b83860
core: sync database based on bytes added, not blocks added
...
Blocks have a very wide range, whereas actual size is the relevant
quantity to consider when syncing
6 years ago
luigi1111
d518dae4bf
Merge pull request #3973
...
50af357
alt_chain_info can now give more info about a particular alt chain (moneromooo-monero)
6 years ago
luigi1111
025187e6c9
Merge pull request #3854
...
149da42
db_lmdb: enable batch transactions by default (stoffu)
34cb6b4
add --regtest and --fixed-difficulty for regression testing (vicsn)
9e1403e
update get_info RPC and bump RPC version (vicsn)
207b66e
first new functional tests (vicsn)
6 years ago
victorsintnicolaas
34cb6b4b70
add --regtest and --fixed-difficulty for regression testing
...
on_generateblocks RPC call combines functionality from the on_getblocktemplate and on_submitblock RPC calls to allow rapid block creation. Difficulty is set permanently to 1 for regtest.
Makes use of FAKECHAIN network type, but takes hard fork heights from mainchain
Default reserve_size in generate_blocks RPC call is now 1. If it is 0, the following error occurs 'Failed to calculate offset for'.
Queries hard fork heights info of other network types
6 years ago
moneromooo-monero
a830db2577
rpc: rework to avoid repeated calculations in get_blocks.bin
6 years ago
moneromooo-monero
ed2c81ed95
replace std::list with std::vector on some hot paths
...
also use reserve where appropriate
6 years ago
moneromooo-monero
50af3579ee
alt_chain_info can now give more info about a particular alt chain
6 years ago
luigi1111
22c8730261
Merge pull request #3450
...
3b941be
core: add get_earliest_ideal_height_for_version() (stoffu)
6 years ago
luigi1111
4267a0bb51
Merge pull request #3731
...
a66f152
Use median timestamp if current time renders a block invalid. (thaerkh)
6 years ago
luigi1111
c534fe8d19
Merge pull request #3251
...
b9389e5
db_lmdb: save pruned and prunable tx data separately (moneromooo-monero)
6 years ago
luigi1111
764340d112
Merge pull request #3420
...
a6a54fa
blockchain: cache difficulty for next block (moneromooo-monero)
6 years ago
moneromooo-monero
b9389e582e
db_lmdb: save pruned and prunable tx data separately
...
This bumps DB version to 2, migration code will run for v1 DBs
6 years ago
moneromooo-monero
5f8ffca34d
speed up get_output_distribution (and precalc common case)
6 years ago
Thaer Khawaja
a66f152f75
Use median timestamp if current time renders a block invalid.
6 years ago
moneromooo-monero
ffeeefde60
speedup get_output_histogram for all amounts when min_count > 0
...
This skips the vast majority of "dust" output amounts with just
one instance on the chain. Clocks in at 0.15% of the original
time on testnet.
6 years ago
stoffu
3b941befae
core: add get_earliest_ideal_height_for_version()
6 years ago
moneromooo-monero
a6a54fa883
blockchain: cache difficulty for next block
...
Takes about 10 ms, which takes pretty much all of the get_info
RPC, which is called pretty often from wallets.
Also add a new lock so we don't need to lock the blockchain lock,
which will avoid blocking for a long time when calling the getinfo
RPC while syncing. Users of get_difficulty_for_next_block who need
the lock will have locked it already.
6 years ago
moneromooo-monero
41f727ce42
add RPC to get a histogram of outputs of a given amount
6 years ago
Jean Pierre Dudey
e1b526b371
Remove the `Blockchain::get_all_known_block_ids` function.
...
This function isn't used in the codebase.
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
6 years ago
stoffu
af773211cb
Stagenet
6 years ago
Riccardo Spagni
f7dcb730cb
Merge pull request #3144
...
42f86624
rpc: expose recent median block size in getinfo (moneromooo-monero)
6 years ago
xmr-eric
18216f19dd
Update 2018 copyright
6 years ago
moneromooo-monero
42f86624a3
rpc: expose recent median block size in getinfo
7 years ago
Riccardo Spagni
0a110aefbb
Merge pull request #2971
...
ae860230
Fix exceptions not finding txpool txes when relaying (moneromooo-monero)
7 years ago
moneromooo-monero
ae8602303a
Fix exceptions not finding txpool txes when relaying
7 years ago
moneromooo-monero
24f584d90d
cryptonote_core: remove unused functions with off by one bugs
7 years ago
moneromooo-monero
7696e84952
core: make --offline also disable DNS lookups
7 years ago
moneromooo-monero
0f2c2d4c34
rpc: remove obsolete busy core checks
7 years ago