There are transactions where the change address is the highest value.
Ex.
58effd6afc7980392b17ba012943915a9be1db3a6d025969e5d5a197a3e25bc3
Reference address
195NyMnCNF8GQYN6gKLuf5LsArgoi5NCW7 (0.00056 BTC - Output)
Out
195NyMnCNF8GQYN6gKLuf5LsArgoi5NCW7 - (Spent) 0.00028 BTC
1BaMPFdqMUQ4DLtPtRbfHkEFScBGmyvYA - (Unspent) 0.00006 BTC
1LdgFp2gLvWfkPnyTYAtH7ENnzgBDdNwfd - (Unspent) 0.00006 BTC
1EXoDusjGwvnjZUyKkxZ4UHEf77z6A5S4P - (Unspent) 0.00006 BTC
Should this transaction be valid or invalid?
The data can be read using peek and decode.
Sorry to nitpick but for clarity reference address = recipient, not sender
Yep this fits peek & decode without ambiguity I believe (the sequence numbers are way off, but since the change output has a different amount & we ignore Exodus & peek the data address, there is only one address left which has to be the reference)
Peek & decode actually isn't in masterchest.info prod at the mo. From dev:
Info:
select FROMADD,TOADD,VALUE,CURTYPE from transactions where txid='58effd6afc7980392b17ba012943915a9be1db3a6d025969e5d5a197a3e25bc3'
FROMADD TOADD VALUE CURTYPE
195NyMnCNF8GQYN6gKLuf5LsArgoi5NCW7 1LdgFp2gLvWfkPnyTYAtH7ENnzgBDdNwfd 20000000000 1
Valid? (0=No, 1=Yes)
select VALID from transactions_processed where txid='58effd6afc7980392b17ba012943915a9be1db3a6d025969e5d5a197a3e25bc3'
The other transaction you mentioned (this is valid on masterchest.info prod) - Valid? (0=No, 1=Yes)
select VALID from transactions_processed where txid='4c70f475496beac289e1db74204e0a3501aa920bafe8f618375aa88715e702a1'
TL:DR;
* Masterchest.info prod doesn't recognize the first transaction as it doesn't support peek & decode and the sequence numbers are bad.
* Dev does recognize the first transaction via peek & decode and considers it valid. It does not consider the second transaction you mentioned valid.
Dev is a bit of a mess at the moment (as I'm playing around with multiple outputs trying to break something
) but the peek & decode code will make it into the next engine update.
Tachikoma, are you interpreting all this the same way?
Thanks!