btcsuite / btcwallet

A secure bitcoin wallet daemon written in Go (golang)
ISC License
1.15k stars 591 forks source link

Add option to allow for dust when checking outputs #907

Open benthecarman opened 10 months ago

benthecarman commented 10 months ago

This seems standard in most wallet libraries nowadays to give users the option to allow for dust if they know what they are doing.

guggero commented 5 hours ago

You mentioned you need this for OP_RETURN outputs. But those should already be exempt by the check here. So I don't really see why this is needed? Or how exactly are you creating the OP_RETURN outputs?

benthecarman commented 3 hours ago

If the op return output is over the standard 80 byte limit it is considered dust.

guggero commented 3 hours ago

Ah yes. So you'd need a non-standard implementation of a chain backend to propagate such an output in the first place...

benthecarman commented 3 hours ago

Yeah I use Libre relay