| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
| |
It's slow work, so let's not expose it
|
| |
|
|
|
|
|
| |
Fix for #4399.
Also unifies code for serializing pruned tx to binary/json into one.
(Cherry-picked from #4586)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This curbs runaway growth while still allowing substantial
spikes in block weight
Original specification from ArticMine:
here is the scaling proposal
Define: LongTermBlockWeight
Before fork:
LongTermBlockWeight = BlockWeight
At or after fork:
LongTermBlockWeight = min(BlockWeight, 1.4*LongTermEffectiveMedianBlockWeight)
Note: To avoid possible consensus issues over rounding the LongTermBlockWeight for a given block should be calculated to the nearest byte, and stored as a integer in the block itself. The stored LongTermBlockWeight is then used for future calculations of the LongTermEffectiveMedianBlockWeight and not recalculated each time.
Define: LongTermEffectiveMedianBlockWeight
LongTermEffectiveMedianBlockWeight = max(300000, MedianOverPrevious100000Blocks(LongTermBlockWeight))
Change Definition of EffectiveMedianBlockWeight
From (current definition)
EffectiveMedianBlockWeight = max(300000, MedianOverPrevious100Blocks(BlockWeight))
To (proposed definition)
EffectiveMedianBlockWeight = min(max(300000, MedianOverPrevious100Blocks(BlockWeight)), 50*LongTermEffectiveMedianBlockWeight)
Notes:
1) There are no other changes to the existing penalty formula, median calculation, fees etc.
2) There is the requirement to store the LongTermBlockWeight of a block unencrypted in the block itself. This is to avoid possible consensus issues over rounding and also to prevent the calculations from becoming unwieldy as we move away from the fork.
3) When the EffectiveMedianBlockWeight cap is reached it is still possible to mine blocks up to 2x the EffectiveMedianBlockWeight by paying the corresponding penalty.
|
| |\
| |
| |
| | |
742dec8d rpc: fix output distribution caching ignoring chain changes (moneromooo-monero)
|
| | |
| |
| |
| |
| |
| |
| |
| | |
0 is placeholder for whole chain, so we should compare chain
height changes rather than chain-height-or-zero. Even this isn't
totally foolproof if a blocks are popped and the same number
added again, but it is much better as it prevents the data from
slowly going out of sync.
|
| |/ |
|
| |\
| |
| |
| | |
f77ce675 rpc: allow pruning of json encoded txs (cryptochangements34)
|
| | | |
|
| |\ \
| | |
| | |
| | | |
ac934663 rpc: add a "is an update available" flag in get_info (moneromooo-monero)
|
| | | |
| | |
| | |
| | | |
Make it easier for a user to be told when to update
|
| |\ \ \
| | | |
| | | |
| | | | |
4f81cd3a rpc: add cumulative difficulty in block header data (moneromooo-monero)
|
| | |/ / |
|
| |\ \ \
| | | |
| | | |
| | | | |
03c07b16 rpc: return "already mining" in start_mining if already mining (moneromooo-monero)
|
| | | | | |
|
| |\ \ \ \
| | | | |
| | | | |
| | | | | |
cd647612 rpc: don't include start time if restricted (moneromooo-monero)
|
| | |/ / / |
|
| |\ \ \ \
| |_|_|/
|/| | |
| | | | |
76f95f05 rpc: allow to pass RPC login via RPC_LOGIN env var (Dusan Klinec)
|
| | |/ /
| | |
| | |
| | | |
- passing by parameter is insecure as it is shown in the process list
|
| | |/
|/| |
|
| |/ |
|
| | |
|
| |\
| |
| |
| | |
438d52d remove epee from link lines where it's redundant (moneromooo-monero)
|
| | |
| |
| |
| |
| |
| | |
For some reason, this confuses and kills ASAN on startup
as it thinks const uint8_t ipv4_network_address::ID is
defined multiple times.
|
| |\ \
| | |
| | |
| | | |
3e46db9 rpc: add a non binary get_transaction_pool_hashes RPC (moneromooo-monero)
|
| | | | |
|
| |\ \ \
| | | |
| | | |
| | | | |
e5592c4 rpc: add blockchain disk size to getinfo (moneromooo-monero)
|
| | |/ /
| | |
| | |
| | |
| | | |
This should help new nodes predict how much disk space will be
needed for a full sync
|
| |\ \ \
| | | |
| | | |
| | | | |
45e419b db: store cumulative rct output distribution in the db for speed (moneromooo-monero)
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This gets rid of the temporary precalc cache.
Also make the RPC able to send data back in binary or JSON,
since there can be a lot of data
This bumps the LMDB database format to v3, with migration.
|
| |\ \ \ \
| | | | |
| | | | |
| | | | | |
50af357 alt_chain_info can now give more info about a particular alt chain (moneromooo-monero)
|
| | | | | | |
|
| |\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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)
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
| |\ \ \ \ \
| |_|_|_|/
|/| | | |
| | | | | |
5b5828fc zmq_server: fix bind call when address and/or port are empty (moneromooo-monero)
|
| | | |/ /
| |/| | |
|
| |\ \ \ \
| | | | |
| | | | |
| | | | | |
a2b557f 6795bd0 209ec96 ed2c81e a830db2 57ea902 31a895e ba8331c f7f1917 41be339 f025ae9 ef2cb63 dcfd299 5d3e702 2704624 2771a18 0e4c7d0 (moneromooo-monero)
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
also use reserve where appropriate
|
| | | | | | |
|
| | | |_|/
| |/| | |
|
| |/ / / |
|
| |\ \ \
| |/ /
|/| |
| | | |
a87980f fix build with GCC 8.1.0 (moneromooo-monero)
|
| | | | |
|
| |\ \ \
| | | |
| | | |
| | | | |
d344736 rpc: convert distribution to cumulative after caching (moneromooo-monero)
|
| | | | |
| | | |
| | | |
| | | | |
This avoids double conversion on a later cache hit
|
| | |_|/
|/| | |
|
| |\ \ \
| | | |
| | | |
| | | | |
353e9c0 Core RPC: optionally add POW hash to block_header_response (stoffu)
|
| | | | | |
|