RavenProject / ravenwallet-android

MIT License
18 stars 28 forks source link

bad-tx-inputs-outputs-mismatch Bad Transaction #77

Open BonoTechnologies opened 3 years ago

BonoTechnologies commented 3 years ago

0x0100000001c574975e82af9248f7dc50ac7db3347fd68e3ed8a30b5e5b59050495825d668c000000006b483045022100de9aff9307121128f1c2cbeceda9f7a8f8c475a13c0718509dfea39dccc7d8c402201f636be96a809e6c629c768b1f1fba16d87f00eb642090156dff5498595e4192012102016f62e79c0166fe6387e3ee51000d4bf8ca26efea9b41d9b9687b1efc039c33ffffffff0200000000000000004476a914f9456fab3109bb7d40d71b46d04b3bf8558e804a88acc02872766e741b43545f494f532e3123554e495f4a4a414348414e475f315f325f3300e1f50500000000759a288268000000001976a914bd17d04f8cc4ae9296dc33389caa885fa177c39d88ac00000000

the output index 3 tx is not included to a utxo array. In BRAddress.c source code, In function BRScriptElements, it decodes "4d" as OP_PUSHDATA2 opcode, and it takes 2bytes(7276) as the length. and the returned value is not matched the condition in BRAddressFromScriptPubKey. so it fails to get address from the hex value, and the tx is not included to utxo array.

I hope to get fixed version.