Reproduced with both 0.12.0 and 0.12.2.0 versions.
I'm trying to sync stagenet blockchain from scratch. At first, I have the following bitmonero-home directory structure:
/home/user/.bitmonero/
โโโ bitmonero.log
โโโ lmdb
โย ย โโโ data.mdb
โย ย โโโ lock.mdb
โโโ monero-blockchain-import.log
โโโ monerod.conf
โโโ monero-wallet-cli.log
โโโ p2pstate.bin
โโโ testnet
โโโ 38080
โย ย โโโ p2pstate.bin
โโโ 48080
โย ย โโโ p2pstate.bin
โโโ 88080
โย ย โโโ p2pstate.bin
โโโ bitmonero.log
โโโ lmdb
โย ย โโโ data.mdb
โย ย โโโ lock.mdb
โโโ p2pstate.bin
then i start my monerod as follows:
$ ./bitmonerod --stagenet --log-level=2
and a lot of errors like (full log is here - https://www.dropbox.com/s/jyte292csmvxj9c/bitmonero.log?dl=0):
2018-06-29 13:58:52.300 [P2P5] ERROR net.p2p src/cryptonote_core/blockchain.cpp:2011 Client sent wrong NOTIFY_REQUEST_CHAIN: genesis block mismatch:
id: <96375dc8a8dd960c33f59190edf51a3f458d6e8d8a2c7bc7517c5dee26955174>,
expected: <76ee3cc98646292206cd3e86f74d88b4dcc1d937088645e9b0cbca84b7ce74eb>,
dropping connection
after deleting ~/.bitmonero/stagenet directory and restarting daemon with --data-dir option being set to default value it works just fine:
$ rm -rf ~/.bitmonero/stagenet && ./monerod --stagenet --log-level=2 --data-dir=/home/user/.bitmonero/stagenet
````
log:
2018-06-29 14:33:17.373 [P2P9] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1171 [18.191.223.168:38080 OUT] Synced 11600/107757
2018-06-29 14:33:18.110 [P2P9] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1171 [18.191.223.168:38080 OUT] Synced 11620/107757
2018-06-29 14:33:18.798 [P2P9] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1171 [18.191.223.168:38080 OUT] Synced 11640/107757
2018-06-29 14:33:19.607 [P2P2] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1171 [92.35.34.106:38080 OUT] Synced 11660/107757
```
I'd want to see a level 2 log of the other nodes, the ones sending the apparently wrong block. AFAICT this is a problem on the other side, which is odd since there are many having it...
FWIW a web search with that block ID led me to these scamcoins:
I accidentally noticed that if start daemon with option --data-dir=~/.bitmonero/stagenet it create directory ~ in cwd.
~ is a bash thing. If you use another shell, it won't replace it. Use $HOME instead.
but i use bash and apparently it doesn't expand the wildcard
This isn't the place to discuss how Bash works.
But drop the = if you want bash to see it.
+invalid
Most helpful comment
FWIW a web search with that block ID led me to these scamcoins:
https://explorer.getlotto.io/block/c23f87a0cec573c043ce9b255a4693a2369cc4376ea62c87156b53ff8d80fc4e
https://explorer.goprivatepay.com/block/46ef0cca046bc20581bbd5af8ab2ced70d3f1afec36340bad9d54623150bec3d