openvcash / vcash

A decentralized currency for the internet.
https://vcash.info
GNU Affero General Public License v3.0
36 stars 35 forks source link

[RPC] gettransaction on blended tx inputs returns an invalid response #12

Open whphhg opened 7 years ago

whphhg commented 7 years ago

Using gettransaction on blended tx inputs returns an invalid response, where vin and vout are undefined and make the JSON parser fail.

{
  "result": {
    "txid": "eb041029a918d044f1eeecb819073e42fae8721394ede0991dd23ae94eab7337",
    "version": 1,
    "time": 1490103150,
    "locktime": 0,
    "vin":,
    "vout":,
    "amount": 0,
    "confirmations": -1,
    "txid": "eb041029a918d044f1eeecb819073e42fae8721394ede0991dd23ae94eab7337",
    "time": 1490103150,
    "timereceived": 0
  },
  "id": "59"
}

This happens on newly blended txs before the daemon gets restarted, after restart there's no issue. I've had it happen at the same time on Arch and Ubuntu when the wallets blended between themselves and started getting invalid response from a couple of inputs until I restarted both daemons.

whphhg commented 7 years ago

I don't seem to be getting the issue above anymore, however now the blended transactions are missing the blended property when returned by listsinceblock or gettransaction.