public override bool Equals(object obj) { if (!(obj is SpentTx)) return false; var other = (SpentTx)obj; return other.TxHash == this.TxHash && other.ConfirmedBlockIndex == this.ConfirmedBlockIndex && other.TxIndex == this.TxIndex; } }