ordinals / ord

👁‍🗨 Rare and exotic sats
https://ordinals.com
Creative Commons Zero v1.0 Universal
3.85k stars 1.37k forks source link

Reveal transaction error #2039

Open ordinalsbot opened 1 year ago

ordinalsbot commented 1 year ago

Hi, We are having this error multiple times for a tx that actually went through and broadcasted but ord returned an error.

How can we track and fix these false negatives?

inscribing xxx/xxx_182.png fee 17 error: Failed to send reveal transaction because: JSON-RPC error: transport error: Couldn't connect to host: Resource temporarily unavailable (os erro r 11)

resulting duplicate inscriptions: https://ordinals.com/inscription/fc1adbf3c736a188552b6c787cb57533d3ad33d886a470a67254fd9a04bdb500i0 https://ordinals.com/inscription/b386154198ce5e817abf9c1ef7027e8d5209ef62a61dee21cc951a32083d4679i0

soenkehahn commented 1 year ago

Could you describe what exactly you did that resulted in this error, i.e. what command you ran, please? Especially I'm not sure whether you tried to inscribe this file twice or not. Did you try to inscribe the file once and ord inscribed the file twice?

gmart7t2 commented 1 year ago

The txs were broadcast but ord reported that they weren't so he tried again, ending up with 2 copies.

casey commented 1 year ago

This issue is not actionable as is. In order to understand and fix this issue, the following questions need to be answered:

I think I have an idea what you were trying to do and what the problem is, but I don't want to guess, and need a clear description of the issue in order to be able to solve it.

ordinalsbot commented 1 year ago

sure, I'll try to provide more information but not sure if it's something that can easily be reproduced:

we have done over 50k+ inscriptions and in our logs we see 26 occurances of this issue with below breakdown:

It could be that maybe a block is found during this time but it's difficult to say. when I compare our logging time with block times I think they are overlapping 2023-02-28T19:34:44.155Z (issue time) -> 2023-02-28 19:34 (block #778700 timestamp)

Note that we don't do anything on the DB in parallel so only 1 ord client has access to this machine

it can be possible to discover the issue on regtest by aggressively inscribing and mining blocks in parallel...

casey commented 1 year ago

I'm not sure we can debug this as is, if it occurs 26 times in 50k inscriptions.