HelixNetwork / pendulum

Pendulum is a distributed messaging protocol that enables globally available tamper proof timestamps :hourglass_flowing_sand:
https://dev.hlx.ai
Other
10 stars 6 forks source link

Sending value transaction to same address multiple times fails #182

Closed stefan-precup closed 4 years ago

stefan-precup commented 4 years ago

Expected Behavior Being able to send multiple value transaction to the same address

Current Behavior Some times I'm able to send multiple value transaction to the same address. sometimes not

Failure Information (for bugs) The wallet asks the node for "wereAddressesSpentFrom" and the node returns true even though the address was just generated

Steps to Reproduce

  1. Generate address on 2nd account
  2. Send value tx from 1st account to 2nd account
  3. Repeat step 2 using the same address generated at step 1

Context

I'm using the wallet

Version: Operating System: Linux

adrian-tocu commented 4 years ago

The issue is wallet related. Please refer to https://github.com/HelixNetwork/nautilus/issues/30. WereAdressSpentFrom is pooling for sender's address. So if the transaction is not confirmed, you will not be able to send again to the same address, until the transaction is confirmed.

oracle58 commented 4 years ago

Resolved in: https://github.com/HelixNetwork/nautilus/commit/303b987eb093122d2f39ee510d7f2dfe775809ab