Skip to content

Instantly share code, notes, and snippets.

@interbiznw
Created October 17, 2019 09:25
Show Gist options
  • Select an option

  • Save interbiznw/449a47e8d9d38f2a812edaec8e9b8d2d to your computer and use it in GitHub Desktop.

Select an option

Save interbiznw/449a47e8d9d38f2a812edaec8e9b8d2d to your computer and use it in GitHub Desktop.
Testing Log: 13th Oct - branch: algochange192-7
Hardware: CPU i5 and Rig : 3x1070s
ChainParams:
============
consensus.nPowDifficultyBombHeight = 32;
consensus.nHeightDiffBombRemoved = 31;
// Equihash 192,7
nEquihashParamsUpdate = 80;
nEquihashNnew = 192;
nEquihashKnew = 7;
// LWMA-1
lwmaActivationHeight = 98;
lwmaAveragingWindow = 120;
Node Config:
```
rpcuser=btcprivaterpc
rpcpassword=password1
rpcallowip=127.0.0.1
txindex=1
testnet=1
daemon=1
server=1
listen=1
gen=1
```
Setup
=========
- Setup a 2 node network, both brand new and connected to each other.
- set gen=1 on node1, and CPU mined the first 17 blocks
21:00 start mining CPU Genesis created
Check - Both nodes syncing blocks up to date. No debug errors.
Block 17
========
- Bring pool online in 200_9 mode. Connect to pool with 3xGPU and mine with zm_0.6.2.
- Monitor debug.logs and send some coins around while waiting. Testing existing functionality.
12:26 - Connected GPU's - Blockheight advancing fast. Not unexpected
diff will adjust at 34,51
Block 47 21.31 "difficulty": 199.7494939873795,
Nodes all fine and syncing
Block 51 "difficulty": 219.8296601063969,
Block 67 "difficulty": 301.4836112708453,
Tested shieldcoinbase - Getting bad_alloc with all sheilding operations
block 78 "difficulty": 370.1072137657181,
79
Block 80
========
- Node will start rejecting blocks from the pool
2019-10-13 21:40:47 ERROR: ContextualCheckBlockHeader: incorrect equihash solution size have 1344 need 400
2019-10-13 21:40:47 ERROR: ProcessNewBlock: AcceptBlock FAILED
2019-10-13 21:40:47 HC Falling through at height 80
- Stop pool and Miner and update z-nomp testnet/btcp.json file with following config;
```
"parameters": {
"N": 192,
"K": 7,
"personalization": "BTCP_PoW"
},
```
- Start pool
- Start EWBF miner with 1 GPU mining 192_7
21.47 started mining. shielding still failing.
Block 79 "difficulty": 377.3155811442965,
Monitor debug.log - HellCatz kick in?
debug Hellcatz kicked in : 2019-10-13 19:48:55 HC Returning level 3 difficulty 553713663 at height 80
mined 80 on 1 GPU - 2019-10-13 21:49:20
2019-10-13 21:53:20 HC Falling through at height 81
2019-10-13 21:54:21 UpdateTip: new best=0002463ce09ab3bd47ae44759a2e1dea669532ce915bdfb3d48d98ae5082e080 height=81
2019-10-13 21:54:26 UpdateTip: new best=001dc78627e3b7bc8bfb398b0519d6d5087f03d7784d7cdd87a04c3efe9d2fe7 height=82
2019-10-13 21:54:31 UpdateTip: new best=002a12dfed1762f0a50a83bc147da5a8c8c975dcc73e99afdee1c07378c0d79e height=83
2019-10-13 21:54:45 UpdateTip: new best=006728bb12ddb27109ecc8bb9a50f60076bdfbb424a00d71a4e13f9d6eb7f72f height=84
2019-10-13 21:56:32 UpdateTip: new best=0032991112bc97be7529e2c18159c5dfc98d4c5b469ce7f87babe660bbb92e19 height=92
.. Ok so blocks are running fast during hellcatz period. Better than slow Ig uess
block 95 "difficulty": 464.3369959314716,
block 96 "difficulty": 469.7454850902982,
Double checked error with shielding as suspected, memory issue.
Not concerned about this as we didnt change any shielding code
Block 97
========
"difficulty": 496.3010294639687,
2019-10-13 21:59:00 UpdateTip: new best=001312b363e111acdccc613a374d62c26ecd79f67136f5992c877f1cb829abca height=98
Wait.. what?!
"difficulty": 1,
Block 100, 101, 102, 103..
"blocks": 115,
"timeoffset": 0,
"connections": 1,
"proxy": "",
"difficulty": 1,
Difficulty not rising. Finishing test.
============================================
//if (height > chainparams.LwmaHeight() && height <= chainparams.LwmaHeight() + N) { return powLimit.GetCompact(); }
Commented out the 'give away blocks' code that we left in. As advised by email from Zawy (LWMA)
Restarted test, follows same path. Await 97
..
"blocks": 80,
"difficulty": 256,
Block 97
========
"blocks": 97,
"difficulty": 464.0030976021241,
LwmaCalculateNextWorkRequired called..
Segmentation fault (core dumped)
New Test
===========
Increase params here so;
- no segfault
- Difficulty has a chance to get higher
// Equihash 192,7
nEquihashParamsUpdate = 150;
nEquihashNnew = 192;
nEquihashKnew = 7;
// LWMA-1
lwmaActivationHeight = 168;
lwmaAveragingWindow = 120;
Log block timings when we get to 150;
"difficulty": 998.3623136221809 @ 148
block 149 12:47
*** NOTE: shielding is working after server reboot. \o/
==== Dropped from 3 GPU to 1 GPU and switched ALGP
block 150 & 12.48 "difficulty": 1036.823592319846,. Lucky?
156 : "difficulty": 1161.294601357245, 12:56
168 "difficulty": 1455.525399075559, 13:03
169 13:08 "difficulty": 1484.606665293216,
169 13:08 "difficulty": 1945.627090634321,
"blocks": 170,
Mining continues...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment