vcashorg / vcash-wallet

Apache License 2.0
15 stars 28 forks source link

Outputs maybe used twice #6

Open jadeydi opened 4 years ago

jadeydi commented 4 years ago
created at 2020-02-05T11:41:21.138766615Z and post_tx succes
"tx":{"body":{"inputs":[{"commit":"083561f880bc648e54146e0baf61e9b4164bf82115493442da93b36444c0f4daa1","features":"Plain"}, ....] ,"kernels":[{"excess":"099612b39fa5cbbac2eef98eedfa7723e42b7a5e03ad127e42725f6d8ff20df228","excess_sig":"69d84ada8c6610f55f0e7d3f9a34d411ecebb053e29167056d5edc9b46b25fd0af33bb4317a4f7eb295a1f69a9475ccf286c19aea0f20863098ee8f9ff4d9675","features":{"Plain":{"fee":4000000}}}]

created 2020-02-06T08:33:59.170121958Z then post_tx fail
"tx":{"body":{"inputs":[{"commit":"083561f880bc648e54146e0baf61e9b4164bf82115493442da93b36444c0f4daa1","features":"Plain"},....],"kernels":[{"excess":"0898a280ebf73c9c80b993564d505c3a739d3e48c2e4232be8ec9d567cd4788094","excess_sig":"89288d0653fb2d3352e922070480b0889cb76b6036fc86b54e5a4282f6b568e64aa0607d39e98c121a01e374112a14e714c05a781b24e3bcc29a8941133014b4","features":{"Plain":{"fee":7000000}}}]

When I use vcash-wallet to withdrawal, there will always be a hash used twice, is there any bugs?

jdwldnqi837 commented 4 years ago

is there any log info about the commit "083561f880bc648e54146e0baf61e9b4164bf82115493442da93b36444c0f4daa1".

jadeydi commented 4 years ago

https://github.com/mimblewimble/docs/wiki/Wallet-JSON-RPC-API-Guide#file-method No log for the commit, I follow these processes:

  1. init_send_tx
  2. tx_lock_outputs
  3. receive_tx
  4. finalize_tx
  5. post_tx

Before post_tx, it works well, and 500 for post_tx