Skip to content

Instantly share code, notes, and snippets.

WmsiArWFY3qKHouj2bNZzM3bsupm3F3uDh4m17zxoJiDAVwoDAEMocL3p3quthjCuyZ2iP5hMzQEZU6fB4MBs4QH3AArkGe3b
ZT7C9e61tYHgphPRyjLvipAqVv9ogxZWweSZxJF7zVi4VjrUHH4UpL4AJ1h1foMSzpKLwMMuh14t8Ep9D5NZhUsk1shYBnJeb
WwaPBfKk9KMKHouj2bNZzM3bsupm3F3uDh4m17zxoJiDAVwoDAEMocL3p3quthjCuyZ2iP5hMzQEZU6fB4MBs4QHj3XrdZjnYsi1PxHYFZDA
WwaPBfKk9KMKHouj2bNZzM3bsupm3F3uDh4m17zxoJiDAVwoDAEMocL3p3quthjCuyZ2iP5hMzQEZU6fB4MBs4QHj3WJUpstwWz2Wi2kmfqD
M5u98JoJinLemRgwR2Fnb91zRHWsX7PSd8iGJ6FSm2uZdw4rFcEVrgHMmMKFbtsnfwCrV1zhTBwdj8eCxz5cqF1g962CmbR
T6SPLTp7TMRM5Dr2xd9tgvA1haEtbmCpc52cxqLGCiLjgsdDsbGPHx2WkMXUzH4rhvGkRfFwSbESU5DUgcwwdrGu1goVU6SsC
MFbp97coL3remRgwR2Fnb91zRHWsX7PSd8iGJ6FSm2uZdw4rFcEVrgHMmMKFbtsnfwCrV1zhTBwdj8eCxz5cqF1gCzBarNndjQMJcDoeRx
MFbp97coL3remRgwR2Fnb91zRHWsX7PSd8iGJ6FSm2uZdw4rFcEVrgHMmMKFbtsnfwCrV1zhTBwdj8eCxz5cqF1gCw2vPy6WpjuVm6jfTR
@stoffu
stoffu / monero-rule-changes.md
Last active March 13, 2018 09:48
Monero Rule Changes
  • monero-project/monero#406 Hard fork by mooo, on Sep 21, 2015
    • blockchain: add a couple missing includes
    • New hardfork class …
    • blockchain: use the new hardfork class
    • core: moan when we think an update is needed to get latest hard fork … …
    • core: add consts where appropriate
    • blockchain: force a hardfork recalculation at load time …
    • Add an RPC call and daemon command to get info on hard fork voting
    • hardfork: remove the "parts are copyright cryptonote" notices …
  • hardfork: most state now saved to the DB …
@stoffu
stoffu / config.json
Created June 18, 2018 01:55
Example config used in AEON testnet pool http://162.210.173.150:8082/
{
"coin": "aeon",
"symbol": "AEON",
"coinUnits": 1000000000000,
"coinDifficultyTarget": 240,
"logging": {
"files": {
"level": "info",
"directory": "logs",
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index fdeaab8bd..cd4ab0ae8 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -133,7 +133,8 @@ static const struct {
//------------------------------------------------------------------
Blockchain::Blockchain(tx_memory_pool& tx_pool) :
m_db(), m_tx_pool(tx_pool), m_hardfork(NULL), m_timestamps_and_difficulties_height(0), m_current_block_cumul_sz_limit(0), m_current_block_cumul_sz_median(0),
- m_enforce_dns_checkpoints(false), m_max_prepare_blocks_threads(4), m_db_blocks_per_sync(1), m_db_sync_mode(db_async), m_db_default_sync(false), m_fast_sync(true), m_show_time_stats(false), m_sync_counter(0), m_cancel(false)
+ m_enforce_dns_checkpoints(false), m_max_prepare_blocks_threads(4), m_db_blocks_per_sync(1), m_db_sync_mode(db_async), m_db_default_sync(false), m_fast_sync(true), m_show_time_stats(false), m_sync_counter(0), m_cancel(false),
def get_num_bits(idx):
result = 0
while idx > 0:
if idx & 1:
result += 1
idx = idx >> 1
return result
def has_one_more_bit(idx, idx_more):
if get_num_bits(idx) + 1 != get_num_bits(idx_more):
10000 afb0c3d1ba39c8eba13513e08b3fb77173953812d8860cae469179b84b4d2a7a
20000 d98bde7a92a7f703ccfab7750e5d2fdf31a490fb561b797a8842a75c2e212547
10000 04d23f0e903d32b94d43c508daad1c2c095986ac36b62bad5ff747237160c686
30000 cbe173369c3fef04e79c2a0acf3a5f739ff469da1bfc0607f0fbd9507d2faaba
20000 a0bd44b9fa7064cc82f7e46478505a8d0f9052fdc3d92f73cc7b077398388b9a
1005000 1538007624 2688742232
1005001 1538007681 2692552274
1005002 1538007967 2688887114
1005003 1538008565 2689848510
1005004 1538008628 2687615099
1005005 1538008676 2697814111
1005006 1538009460 2700914420
1005007 1538009462 2697775749
1005008 1538009514 2696450507
1005009 1538009643 2699535475
1005000 1538007624 2688742232
1005001 1538007681 2692552274
1005002 1538007967 2688887114
1005003 1538008565 2689848510
1005004 1538008628 2687615099
1005005 1538008676 2697814111
1005006 1538009460 2700914420
1005007 1538009462 2697775749
1005008 1538009514 2696450507
1005009 1538009643 2699535475
gitianuser@stoffu-virtual-machine:~$ ./gitian-build.py --setup stoffu 0.13.0.4
HEAD is now at 963322d Merge #197: Do not overwrite var/install.log
I: Retrieving InRelease
I: Checking Release signature
I: Valid Release signature (key id 790BC7277767219C42C86F933B4FE6ACC0B21F32)
I: Retrieving Packages
I: Validating Packages
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...

Upstream 1 PR aeon#30 (merged on Aug 9):

  • Revert "Merge pull request #3775" /monero#3841 ...
  • device_ledger: fix bad memory access on connect error /monero#3977

Monero PRs after 3977 (merged on Jun 25) already included in aeon/#30:

  • 3997 (merged on Jul 3)
  • abstract_tcp_server2: restart async accept on error