[NebulousLabs/Sia] Add tg.Add to exported wallet methods (#2997)

I don’t think it’s worth it to overhaul everything and complicate every piece of code that touches the wallet just so that we can report one specific type of error that occurs under one specific circumstance. The same issue applies to other modules, so inevitably we’d have to add an `error` return value to every single method on every module.
You can avoid all of this by arranging things so that you never call a module’s methods after you’ve called `Close`. That requires some careful code in the `node` package, but nowhere else. I think it’s reasonable for a module to say «behavior of these methods is undefined after Close has been called.»

Добавить комментарий