wowario
97dfd5ae74
fix non-void function
...
Signed-off-by: wowario <wowario@protonmail.com >
2020-07-30 18:01:45 +03:00
jwinterm
bda76b6be9
Merge pull request 'Revert SHA-3 on Master branch' ( #302 ) from wowario/wownero:sha3 into master
...
Reviewed-on: https://git.wownero.com/wownero/wownero/pulls/302
2020-07-23 05:23:28 +00:00
wowario
b3453b4b65
revert #256 switch to SHA-3 PoW
2020-07-22 16:32:11 +03:00
wowario
b532cd8109
update checkpoints
2020-07-20 01:42:44 +03:00
stoffu and wowario
5b83ccbb2d
daemon: guard against rare 'difficulty drift' bug with checkpoints and recalculation
...
On startup, it checks against the difficulty checkpoints, and if any mismatch is found, recalculates all the blocks with wrong difficulties. Additionally, once a week it recalculates difficulties of blocks after the last difficulty checkpoint.
2020-07-20 00:41:18 +03:00
SomaticFanatic and wowario
bcd71a5af9
Update copyright year to 2020
...
Update copyright year to 2020
2020-07-19 23:23:42 +03:00
jw and GitHub
e91b041c75
Merge pull request #278 from wowario/checkpoints
...
build: prepare v0.8.0.1 release
2020-06-28 07:18:43 -07:00
wowario
9f5fa3f7f9
update checkpoints
2020-06-27 10:05:27 +03:00
moneromooo-monero and wowario
72655f78fc
blockchain: fix timestamp/difficulty cache getting out of sync
...
The cache is discarded when a block is popped, but then gets
rebuilt when the difficulty for next block is requested.
While this is all properly locked, it does not take into account
the delay caused by a database transaction being only committed
(and thus its effects made visible to other threads) later on,
which means another thread could request difficulty between
the pop and the commit, which would end up using stale database
view to build the cache, but that cache would not be invalidated
again when the transaction gets committed, which would cause the
cache to not match the new database data.
To fix this, we now keep track of when the cache is invalidated
so we can invalidate it again upon database transaction commit
to ensure it gets calculated again with fresh data next time it
is nedeed.
2020-06-27 03:58:50 +03:00
moneromooo-monero and wowario
b3847bc194
blockchain: fix total_height in getblocks.bin response
2020-06-27 03:53:19 +03:00
moneromooo-monero and wowario
009abd48e5
blockchain: detect and log bad difficulty calculations
2020-05-25 13:03:45 +03:00
jw and GitHub
3b1c27db69
Merge pull request #256 from wowario/SHA-3
...
switch to SHA-3 PoW
2020-05-18 15:03:57 -07:00
wowario and fuwa
87dcc37776
switch to SHA-3 PoW
...
Co-authored-by: fuwa <fuwa0529@users.noreply.github.com >
2020-05-15 08:37:36 +03:00
jw and GitHub
6e43f020ae
Merge pull request #255 from wowario/last
...
upstream
2020-05-14 08:40:03 -07:00
moneromooo-monero and wowario
febb8df4bb
blockchain: fix theoretical race getting bulk timestamps
2020-05-14 18:25:14 +03:00
wowario
7e3dbdde05
build: prepare v0.8.0.0 release
2020-05-14 17:44:48 +03:00
wowario
193c15ecce
refactor difficulty for testnet
2020-05-09 23:22:28 +03:00
moneromooo-monero and wowario
a33c86d875
blockchain_db: faster fetching of consecutive txes
...
Useful for wallet refresh or node sync
2020-04-18 11:23:01 +03:00
wowario
c9a8f4f01c
update checkpoints.dat
2020-04-06 13:10:35 +03:00
wowario
2bcaa4ec02
update checkpoints.dat
2020-04-06 09:09:31 +03:00
wowario
e89be7b80c
support old BP
2020-04-06 09:09:29 +03:00
wowario
652bd57080
initial commit
2020-04-06 09:09:17 +03:00
luigi1111
44547006bf
Merge pull request #6347
...
fcb06f7 cryptonote_core: skip block notify on blockchain switching rollback (xiphon)
2020-04-04 12:52:46 -05:00
luigi1111
c4f75fe898
Merge pull request #6339
...
c61abf8 remove empty statements (shopglobal)
2020-04-04 12:47:31 -05:00
Alexander Blair
aa982a51da
Merge pull request #6284
...
02224e71 Fix check_fee() discrepancy. (UkoeHB)
2020-03-27 12:21:26 -07:00
Alexander Blair
4da37daf67
Merge pull request #6211
...
5985c5af rpc: add bad-blocks to flush_cache RPC (moneromooo-monero)
2020-02-28 19:36:16 -08:00
xiphon
fcb06f7a82
cryptonote_core: skip block notify on blockchain switching rollback
2020-02-19 16:19:29 +00:00
Interchained
c61abf87c0
remove empty statements
...
Cleaning up a little around the code base.
2020-02-17 11:55:15 -05:00
luigi1111
d7aeb5a9f8
Merge pull request #6233
...
8a27645 blockchain: fix flushing txes from the txpool (moneromooo-monero)
2020-02-04 14:38:35 -05:00
Alexander Blair
8eedc8a390
Merge pull request #6140
...
08635a08 blockchain: speedup fetching pruned contiguous tx blobs (moneromooo-monero)
2020-01-25 16:55:18 -08:00
Alexander Blair
c4abfbfbe7
Merge pull request #6124
...
21d4c216 blockchain: error out if the builtin hashes data size is wrong (moneromooo-monero)
2020-01-16 17:31:35 -08:00
UkoeHB and koe
02224e714d
Fix check_fee() discrepancy.
...
M100 = max{300kb, min{100block_median, m_long_term_effective_median_block_weight}}
not
M100 = max{300kb, m_long_term_effective_median_block_weight}
Fix base reward in get_dynamic_base_fee_estimate().
get_dynamic_base_fee_estimate() should match check_fee()
Fee is calculated based on block reward, and the reward penalty takes into account 0.5*max_block_weight (both before and after HF_VERSION_EFFECTIVE_SHORT_TERM_MEDIAN_IN_PENALTY).
Moved median calculation according to best practice of 'keep definitions close to where they are used'.
2020-01-09 09:11:09 -06:00
moneromooo-monero
8a276451b2
blockchain: fix flushing txes from the txpool
2019-12-14 02:13:39 +00:00
moneromooo-monero
5985c5afe8
rpc: add bad-blocks to flush_cache RPC
...
Flushes m_invalid_blocks in Blockchain.
2019-12-02 18:53:30 +00:00
moneromooo-monero
08635a0875
blockchain: speedup fetching pruned contiguous tx blobs
...
About twice as fast, very roughly
2019-11-15 13:23:30 +00:00
moneromooo-monero
21d4c21619
blockchain: error out if the builtin hashes data size is wrong
2019-11-12 12:43:08 +00:00
Lee Clagett
5d7ae2d279
Adding support for hidden (anonymity) txpool
2019-11-02 20:36:03 +00:00
Riccardo Spagni
e4d1674e8c
0.15.0.0 release engineering
2019-11-02 17:21:52 +02:00
moneromooo-monero
eb16755083
blockchain: fix unwanted error when probing the pool for a tx
2019-10-27 19:23:25 +00:00
luigi1111
cf2d4d9a16
Merge pull request #5974
...
7fcd0b5 blockchain: initialize pow to ff..ff (moneromooo-monero)
2019-10-22 10:13:34 -05:00
luigi1111
8bb3c6a8e6
Merge pull request #5970
...
ab96181 blockchain: use effective median block weight for penalty from v12 (moneromooo-monero)
2019-10-22 10:09:56 -05:00
luigi1111
84ce43a239
Merge pull request #5966
...
be82c40 Support median block size > 4 GB (moneromooo-monero)
2019-10-22 10:08:32 -05:00
luigi1111
6f202844b5
Merge pull request #5919
...
01f660f blockchain: fill in cumulative block weight for alt blocks (moneromooo-monero)
2019-10-22 10:06:10 -05:00
moneromooo-monero
be82c40703
Support median block size > 4 GB
...
add a 128/64 division routine so we can use a > 32 bit median block
size in calculations
2019-10-21 10:41:07 +00:00
moneromooo-monero
7fcd0b55ea
blockchain: initialize pow to ff..ff
...
as a safety to reject if it somehow does not get initialised
2019-10-16 09:00:30 +00:00
luigi1111
37a72fd6ae
Merge pull request #5941
...
d37d30f blockchain: tweak fee as a function of median values (moneromooo-monero)
2019-10-14 18:11:13 -05:00
luigi1111
dc48cdc998
Merge pull request #5933
...
3455efa ban peers sending bad pow outright (moneromooo-monero)
2019-10-14 18:07:54 -05:00
moneromooo-monero
ab96181e91
blockchain: use effective median block weight for penalty from v12
...
It was using the raw block weight median, which was not what was
intended in ArticMine's design
2019-10-11 14:16:09 +00:00
moneromooo-monero
01f660f60f
blockchain: fill in cumulative block weight for alt blocks
2019-10-10 20:26:40 +00:00
luigi1111
bf525793c7
Merge pull request #5915
...
8330e77 monerod can now sync from pruned blocks (moneromooo-monero)
2019-10-08 15:55:03 -05:00