Now assuming I broadcast a dust transaction to my own node and a miner include it, does that make the UTXO spendable forever? Will other nodes see it as a valid if it appears in a block even if they haven't relay it before?
Yes, there's nothing in the consensus rules that will invalidate a UTXO with dust amount.
And it's not a hard requirement for the transaction to first make it into a node's mempool for them to accept the block that contains it.
Otherwise, we'll get issues with block propagation since each node's mempool aren't all 100% identical.
Additionally, being "
non-standard" means that most nodes uses that configuration (
it's like a setting rather than strict rule), so not following the majority's config makes a transaction non-standard.
To get a broader picture of this, it's worth researching these terms: "
Bitcoin Consensus Rules" and "
Bitcoin standards/policies"
From everything I have read here I feel like there is no perfect solution. It's either you pay fees now to consolidate or you risk getting stuck in the future.
Ah, so you're concerned on the fee.
Some wallets will try its best not to produce dust change, what wallet are you using?
Based from the OP, it looks like Electrum; if so, that's a good one with decent coin chooser and usually wont leave dust change.
If ever it's sent to you (
dust attack, etc.) you can just ignore the UTXO using coin control, donate it without using other inputs or at least send it to an
OP_RETURN output so it wont clutter the UTXO-set.