Commit Graph

6923 Commits

Author SHA1 Message Date
moneromooo-monero ebc60a098d
ArticMine's new block weight algorithm
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.
2019-02-12 12:15:54 +00:00
Riccardo Spagni ab6c17cc15
Merge pull request #4716
0406724c Makefile: fix building without a git tree (moneromooo-monero)
2018-10-26 22:14:27 +02:00
moneromooo-monero 0406724c24
Makefile: fix building without a git tree 2018-10-24 14:44:22 +00:00
Riccardo Spagni 29073f65e8
Merge pull request #4705
f985d70f wallet2: extend fake out picks away from the gamma pick (moneromooo-monero)
2018-10-23 18:04:12 +02:00
moneromooo-monero f985d70f91
wallet2: extend fake out picks away from the gamma pick
in order to unbias selection from blocks with few txes
2018-10-23 09:56:32 +00:00
Riccardo Spagni d6da74ab5b
Merge pull request #4698
ea723eef update version to 0.13.0.4 (Riccardo Spagni)
2018-10-22 23:27:02 +02:00
Riccardo Spagni b3e053ad18
Merge pull request #4696
64c8981c Providing user supplied default constructor for expect<void> (Lee Clagett)
2018-10-22 23:26:23 +02:00
Riccardo Spagni ea723eeffa
update version to 0.13.0.4 2018-10-22 23:10:58 +02:00
Lee Clagett 64c8981c1c Providing user supplied default constructor for expect<void> 2018-10-22 15:39:10 +00:00
Riccardo Spagni 4ad6b66283
Merge pull request #4670
fea60d6a console_handler: add a global log when exiting via EOF (moneromooo-monero)
2018-10-20 20:45:14 +02:00
Riccardo Spagni 1504424887
Merge pull request #4667
14515ef2 blockchain: move two new verification errors to the verify category (moneromooo-monero)
2018-10-20 20:44:38 +02:00
Riccardo Spagni 3a44fa2582
Merge pull request #4660
742dec8d rpc: fix output distribution caching ignoring chain changes (moneromooo-monero)
2018-10-20 20:44:04 +02:00
Riccardo Spagni 367cf3729b
Merge pull request #4643
c28ea6b6 device: fixed Ledger Nano S device selection (xiphon)
2018-10-20 20:43:46 +02:00
Riccardo Spagni 510d54edd7
Merge pull request #4651
8d098ad5 Rename "blackball" for clarity (moneromooo-monero)
2018-10-20 20:43:28 +02:00
Riccardo Spagni 37c6636199
Merge pull request #4638
a23c80df core: don't verify range proofs multiple times (moneromooo-monero)
2018-10-20 20:43:09 +02:00
Riccardo Spagni ca6b6ca0d3
Merge pull request #4636
d7ff707b tx_pool: revert #4592 and move bin2hex conversion to on_get_transaction_pool (stoffu)
2018-10-20 20:42:51 +02:00
Riccardo Spagni 6592d51693
Merge pull request #4632
1e8a9d7d ANSI colors in Windows 10 (v0.13) (iDunk5400)
2018-10-20 20:42:24 +02:00
Riccardo Spagni dc6da786d3
Merge pull request #4630
e4ce26c7 spawn: close all file descriptors before execve (moneromooo-monero)
2018-10-20 20:42:05 +02:00
Riccardo Spagni effb22cfc4
Merge pull request #4627
bd482802 util: close keys file lock on exec (moneromooo-monero)
2018-10-20 20:41:45 +02:00
moneromooo-monero fea60d6ab2
console_handler: add a global log when exiting via EOF
It's a common confusion point for users which run monerod
without stdin and with --detach
2018-10-20 09:14:08 +00:00
moneromooo-monero 14515ef230
blockchain: move two new verification errors to the verify category
Lest we get people get scared again
2018-10-19 21:11:31 +00:00
moneromooo-monero 742dec8d6a
rpc: fix output distribution caching ignoring chain changes
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.
2018-10-19 09:22:59 +00:00
moneromooo-monero 8d098ad508
Rename "blackball" for clarity
Apparently some people seem to think it's a censorship list...
2018-10-18 18:46:17 +00:00
xiphon c28ea6b617 device: fixed Ledger Nano S device selection 2018-10-18 04:37:30 +00:00
stoffu d7ff707b52
tx_pool: revert #4592 and move bin2hex conversion to on_get_transaction_pool 2018-10-18 10:10:36 +09:00
moneromooo-monero a23c80dfce
core: don't verify range proofs multiple times 2018-10-17 16:23:31 +00:00
moneromooo-monero e4ce26c79f
spawn: close all file descriptors before execve
No need to give whatever we're calling access to what we use
2018-10-17 09:31:46 +00:00
iDunk5400 1e8a9d7dff
ANSI colors in Windows 10 (v0.13) 2018-10-16 22:39:21 +02:00
moneromooo-monero bd48280290
util: close keys file lock on exec 2018-10-16 17:21:08 +00:00
Riccardo Spagni 5638b07d9f
Merge pull request #4603
8e7baeb3 daemon: fix reading past stack on exit (moneromooo-monero)
2018-10-16 18:22:55 +02:00
Riccardo Spagni d661169c03
Merge pull request #4624
7ae3ebc7 wallet_rpc_server: fix change_wallet_password RPC (moneromooo-monero)
2018-10-16 18:22:35 +02:00
moneromooo-monero 7ae3ebc7a8
wallet_rpc_server: fix change_wallet_password RPC 2018-10-16 15:18:24 +00:00
Riccardo Spagni ccc7e3afae
Merge pull request #4622
32ba6f3a wallet2_api: fix generating new wallet in the GUI (moneromooo-monero)
2018-10-16 17:14:09 +02:00
moneromooo-monero 32ba6f3adb
wallet2_api: fix generating new wallet in the GUI
It was creating a new wallet without a password first (this should
be fixed), then not changing the password correctly
2018-10-16 14:47:22 +00:00
moneromooo-monero 8e7baeb394
daemon: fix reading past stack on exit 2018-10-15 22:14:17 +00:00
Riccardo Spagni e9fde8aa44
Merge pull request #4598
dae5fcaa update the version in readme (Riccardo Spagni)
5881bec7 bump version to 0.13.0.3 (Riccardo Spagni)
2018-10-15 17:09:08 +02:00
Riccardo Spagni dae5fcaabc
update the version in readme 2018-10-15 16:38:39 +02:00
Riccardo Spagni 5881bec7d6
bump version to 0.13.0.3 2018-10-15 16:23:35 +02:00
Riccardo Spagni b66c523046
Merge pull request #4596
e3e1f836 tx_pool: store hex string instead of raw binary to tx_blob of get_transaction_pool RPC (stoffu)
2018-10-15 13:56:18 +02:00
Riccardo Spagni 5f4e1fcc90
Merge pull request #4584
26e0cecb Dockerfile: init and update submodules (Tyler Baker)
2018-10-15 13:56:05 +02:00
Riccardo Spagni 5f1e62115c
Merge pull request #4590
82037f23 build: use ARCH 'native' by default, allow to configure and override it (xiphon)
2018-10-15 13:51:08 +02:00
Riccardo Spagni 6834ce6de2
Merge pull request #4574
a04d68f6 SOFTWARE is the default wallet device (m2049r)
2018-10-15 13:50:21 +02:00
Riccardo Spagni 8beb3cd2a1
Merge pull request #4569
e25d21a7 simplewallet: mark default-ring-size setting as obsolete (moneromooo-monero)
2018-10-15 13:49:58 +02:00
Riccardo Spagni dc24639e64
Merge pull request #4579
d7f3805d Revert "p2p: connect via the bound ip, if any" (moneromooo-monero)
2018-10-15 13:49:32 +02:00
Riccardo Spagni 92f42b1e81
Merge pull request #4570
3b04e2e3 daemon: do not run complex code in a signal handler (moneromooo-monero)
2018-10-15 13:49:05 +02:00
Riccardo Spagni 29d7ef0fe0
Merge pull request #4568
2509717b simplewallet: fix view key parsing in --generate-from-view-key (moneromooo-monero)
2018-10-15 13:48:21 +02:00
Riccardo Spagni a9504f7001
Merge pull request #4587
067e232b password: fix secure input with echo on windows (moneromooo-monero)
2018-10-15 13:47:54 +02:00
Riccardo Spagni 3c36a6a227
Merge pull request #4588
b215ea9f password: fix backspace outputting ^? on linux on echoing secure input (moneromooo-monero)
2018-10-15 13:47:27 +02:00
stoffu e3e1f83694
tx_pool: store hex string instead of raw binary to tx_blob of get_transaction_pool RPC
Inspired by https://github.com/masari-project/masari/issues/93
2018-10-15 20:09:32 +09:00
xiphon 82037f2365 build: use ARCH 'native' by default, allow to configure and override it 2018-10-14 23:24:54 +03:00