I went back and looked at the Teranode listener work I put …

BlackWolf ·

I went back and looked at the Teranode listener work I put up and asked myself a plain question. Is this actually done? It ran fine. But working and done are not the same thing.
The decoder had no test on it. I had written the thing and never checked it the way it deserved.
So I wrote one. It builds real messages the same way the network builds them, runs them through the decoder, and confirms they come back exactly right. Then it throws junk and broken input at it to make sure a bad message can never crash it. It just gets skipped.
Small thing, but it stuck with me. Making something work is the start. Done means tested.

Replies

BlackWolf ·

https://github.com/bsv-blockchain/ts-stack/pull/251/commits/6e69594d31b3796de3d12b4c86b0a08b890679db