harmony-one / pangaea-community

The one-stop spot for Pangaea scripts! Open to contribution from all!
16 stars 16 forks source link

Pangaea | Transactions with the same ID number (pairs) #76

Closed BrunoMarshall closed 5 years ago

BrunoMarshall commented 5 years ago

Transactions appears double or/with same ID number How to recreate this issue:

for n in {1..1000}; do ./wallet.sh -t transfer --from one1kkznllwcpcqakvmpqrll5yzp9tdjnf4ufnxcl6 --to one1nqkv7j2tzvqfu684cxdtudvx3k6nmgfml5wng2 --amount 0.01 --pass pass: ; done ;

after some hours the output will be this: image

I will perform more test to check:

chainum commented 5 years ago

The tx id you receive when sending via the wallet is the id of an attempted transfer.

If you submit an identical transfer (in terms of the receiving address and the amount) before your previous tx has been included in a block (i.e. it is pending) you'll just get the same tx id because the previous transaction is still waiting to be included. The pending queue is essentially filtering out transactions with duplicate data before including them in a block.

Randomize the receiving address, the amount or attached base64 data for every transaction and you should get a unique tx id every time.