---
# System prepended metadata

title: 'Mordor::Mystique Testnet Tests'

---

# Mordor::Mystique Testnet Tests

- Diego (remote): `enode://d8a7f20daa9845fd4a5c6397fa930171d6fae08e5fd527d6f1754db7024f88645f8060749ef3c7e5ec5a40fb22f603e0c60e6f86b3c13394d6391f3b5533fb6c@3.236.10.122:30304`
- Diego (local): `enode://a5f834a356c154714b10ecc40ad135fd43fb1386a9c667570f9d7915822b2ea8ad61d3de4f9a6234db5097a19a8073e8b766d7062f74b9cb7d2fedba1e26544a@24.232.23.162:30303`

- Chris@home (local):
`enode://1a3d1a53d1a7679a9830ab6395b1734f587542a47a7e0fdb347a3a4901fbb9e630fb7562ad8b4264db2703c963f9f00cd2b65931f8823638587db84acd96fabb@85.75.101.81:30303?discport=0`
- Chris@office (local):
`enode://542c9eb14688be571cb0d3c4f615e73ab2acc6f30282ad0e5fad26756e49d07924b7b57cf59e334da026f5ebbbd6a328977733d8600e0cc9afe3ee3198213438@94.71.170.183:30303?discport=0`
- Chris etherbase: `0x8f10d3a6283672ecfaeea0377d460bded489ec44`

- Isaac@sfetclabs (remote): `enode://bdf819770ca7848a38311a23e475bbb375e7d20e12f7f81fbae19137d95a184b705d97ecb07941ed9ff51af87398223d3ae0c3763753979c52ae92ad3cb3b8b0@157.230.152.87:30303`
- Isaac etherbase: `0x877bd459c9b7d8576b44e59e09d076c25946f443`


Our mordor-fork started at `5_406_040` so before that block you should be able to sync mordor normally. After that block Chris' node was mining, with Mystique active at `5_406_050`.


### Chris's flow:

1. had a mordor chain at some block
2. we (geth & besu) stop listening to others and met together to get in sync
3. geth mines
4. 5_406_040 reached and activated Mystique

> here we had some issues on syncing so a lot of times I had to do `debug.setHead(5_406_000)` and redo 2-4
> then it was holidays and nodes were sleeping

5. we wanted to sync again, first time I forgot to unstash the fork activation patch and I mined some blocks, besu listened but not synced.
6. I did `debug.setHead()` and synced up to besu
7. all worked fine


:scream_cat: Isaac (consistently) and Diego (sporadically?) see same __Bad Block issue__ at `5406219`, as below.

Diego:


```
2022-01-04 20:21:43.278+00:00 | EthScheduler-Services-8 (validateHeadersJoin) | INFO  | ProofOfWorkValidationRule | Invalid block header: the EthHash result 0xf32f4fe8c1be4c64bd4275ac7bcb6b33c2ff0dfd4d105
8d0c6e5506f69d76786 was greater than the target 0x0000062fdc260abf4f190d174634721f77f1c665ede8ba34bb7f0ec4eddabbf5.
Failing header:
BlockHeader{hash=0x0f2f34a9eed1e452cd23981bc3c0f3230ddebc0e10af82fc6545eb11ecd34eed, parentHash=0x14ba4cfbb06343e97245dd8d06e4c6e44b6e005cda6b77898b78a4aab1d5caf6, ommersHash=0x1dcc4de8dec75d7aab85b567b6c
cd41ad312451b948a7413f0a142fd40d49347, coinbase=0x8f10d3a6283672ecfaeea0377d460bded489ec44, stateRoot=0xac96562435f45c00606cc655cb77bbaec8774bc521b98160aac577b12271af9f, transactionsRoot=0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421, receiptsRoot=0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421, logsBloom=0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000, difficulty=0x000000000000000000000000000000000000000000000000000000000029609d, number=5406235, gasLimit=8000000, gasUsed=0, timestamp=1641327667, extraData=0x
dd83010c0488436f72654765746888676f312e31372e358664617277696e, baseFee=null, mixHashOrRandom=0x1b1bb275350b1c85acc87d752b8f59ea09a541f5e10378a42b54c04dbe917f80, nonce=5494272841991612451}
```

Isaac:

```
Jan 05 14:51:12 sf-etclabs sh[29288]: ERROR[01-05|14:51:12.244]                                                                                                                                                                                                          
Jan 05 14:51:12 sf-etclabs sh[29288]: ########## BAD BLOCK #########                                                                                                                                                                                                     
Jan 05 14:51:12 sf-etclabs sh[29288]: Chain config: NetworkID: 7, ChainID: 63 Engine: ethash ECBP1100: 2380000 EIP1014: 301243 EIP1052: 301243 EIP1108: 999983 EIP1344: 999983 EIP140: 0 EIP145: 301243 EIP150: 0 EIP152: 999983 EIP155: 0 EIP160: 0 EIP161abc: 0 EIP161d:
 0 EIP170: 0 EIP1884: 999983 EIP198: 0 EIP2028: 999983 EIP211: 0 EIP212: 0 EIP213: 0 EIP214: 0 EIP2200: 999983 EIP2565: 3985893 EIP2718: 3985893 EIP2929: 3985893 EIP2930: 3985893 EIP2: 0 EIP3529: 5406050 EIP3541: 5406050 EIP658: 0 EIP7: 0 EthashECIP1017: 0 EthashECI
P1041: 0 EthashECIP1099: 2520000 EthashEIP100B: 0 EthashHomestead: 0                                                                                                                                                                                                     
Jan 05 14:51:12 sf-etclabs sh[29288]: Number: 5406219                                                                                                                                                                                                                    
Jan 05 14:51:12 sf-etclabs sh[29288]: Hash: 0x25c752ff9782b6322d0a7098dfe0df388ea69a7e1eabf6f18a91bb0f746d1e6e
Jan 05 14:51:12 sf-etclabs sh[29288]: Error: invalid mix digest
Jan 05 14:51:12 sf-etclabs sh[29288]: ##############################
```

:scream_cat: Diego has _also_ seen _a different_ __Bad Block__ (`5406235`):


```
2022-01-04 20:21:43.278+00:00 | EthScheduler-Services-8 (validateHeadersJoin) | INFO  | ProofOfWorkValidationRule | Invalid block header: the EthHash result 0xf32f4fe8c1be4c64bd4275ac7bcb6b33c2ff0dfd4d105
8d0c6e5506f69d76786 was greater than the target 0x0000062fdc260abf4f190d174634721f77f1c665ede8ba34bb7f0ec4eddabbf5.
Failing header:
BlockHeader{hash=0x0f2f34a9eed1e452cd23981bc3c0f3230ddebc0e10af82fc6545eb11ecd34eed, parentHash=0x14ba4cfbb06343e97245dd8d06e4c6e44b6e005cda6b77898b78a4aab1d5caf6, ommersHash=0x1dcc4de8dec75d7aab85b567b6c
cd41ad312451b948a7413f0a142fd40d49347, coinbase=0x8f10d3a6283672ecfaeea0377d460bded489ec44, stateRoot=0xac96562435f45c00606cc655cb77bbaec8774bc521b98160aac577b12271af9f, transactionsRoot=0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421, receiptsRoot=0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421, logsBloom=0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000, difficulty=0x000000000000000000000000000000000000000000000000000000000029609d, number=5406235, gasLimit=8000000, gasUsed=0, timestamp=1641327667, extraData=0x
dd83010c0488436f72654765746888676f312e31372e358664617277696e, baseFee=null, mixHashOrRandom=0x1b1bb275350b1c85acc87d752b8f59ea09a541f5e10378a42b54c04dbe917f80, nonce=5494272841991612451}
```