Bug with local network and bootstrap cache

I tried running a local network to do some testing on and got what seemed to be a properly running local network with the evm stuff sorted out

Proceeded to attempt an upload, set the secret key etc.

It sat and sat there sitting on paying. Only to eventually fail saying it got no quotes, the typical error we’ve seen on the live network.

Proceeded to check the bootstrap cache as there was also a lot of internet traffic while trying to upload.

There was the entries from the live network bootstrap cache in the local bootstrap cache. 100s of them for a 25 node local network with IP addresses from around the world.

So brought down the local network, deleted both of the bootstrap caches and restarted the network, tried the upload again and it worked all good.

The bug is that the local bootstrap cache is populated with the live bootstrap cache simply because it was there. There was no live network nodes running.

EDIT: Spoke too soon, now the local bootstrap cache is getting node addresses from around the world included in the bootstrap cache and some new local nodes I added have 200 Routing table peers (from /metrics). Total 40 nodes in local network. There is only one bootstrap cache file and that is the local one.

This maybe a bigger bug than just getting entries from the live bootstrap file since its not there this time

EDIT2: Seems it was because I use port forwarding and kept the same port settings for the local network and the old nodes were not deleted. So when the live network tried to contact a node on the port the node picked up its address and added it to the bootstrap node.

I changed the port settings and the local has remained local since the live network node cannot access any of the ports.

6 Likes

I know this sounds like “have you tried turning it off and on again”, but did you you use the --local flag.

Without that it will use the default, live network. I forget this every so often and then hit myself in the side of the head when I remember.

3 Likes

Yes and yes

See my EDIT2 above and I found the reason beyond the bootstrap files issue

4 Likes