bitcoin-dev-project / warnet

Monitor and analyze the emergent behaviors of Bitcoin networks
https://warnet.dev
MIT License
63 stars 28 forks source link

Run all the executables #272

Open willcl-ark opened 3 months ago

willcl-ark commented 3 months ago

I think we should run a second process on the bitcoin nodes, which will simply watch a directory for executables, and run them when new ones are detected.

This watches /tmp/watchdog and runs whatever it finds there (#dangerzone).

image

This is of course fun, but also we can use it to generate random network activity without requiring the RPC server to co-ordinate everything using synchronous JSONRPC calls over http (zzzzzz)...

Someone already made a nice python lib to do this, so the code ends up pretty simple.

I know it sounds like a terrible idea, but I think it might actually be quite useful! The only issue is that we may want to add a gpg sig file or something if we had this during an attack day, as we wouldn't last long with folks dropping in auto-executed files...

Thoughts?

josibake commented 3 months ago

So the idea here is you could scp' a script to one or more tanks and they would automatically start doing whatever the script tells the container to do until the file is later removed?

Seems like it could be useful, but somewhat goes against the idea of reproducibility and doesn't seem to fit with using the python test framework for driving network wide scenarios. Perhaps we table it for now, unless you have a compelling usecase?