Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to verify if I won or lost the auction #50

Closed
Detoo opened this issue Aug 15, 2018 · 6 comments
Closed

Unable to verify if I won or lost the auction #50

Detoo opened this issue Aug 15, 2018 · 6 comments
Labels
bug general - Something isn't working

Comments

@Detoo
Copy link

Detoo commented Aug 15, 2018

Hi all, I tried to bid the TLD “detoo” in the testnet but ended up in limbo: I could not tell if I won or lost the auction. More specifically, I could not update the domain (assuming I won), nor could I redeem the lost bids (assuming I lost).

Here are the actions done:

  • Opened an auction at height 4380:
{
  "version": 0,
  "height": 4380,
  "value": 0,
  "address": "ts1qxc98du0yyw2nm7twqu7jxrp8wapu4vdf0f9w0p",
  "covenant": {
    "type": 2,
    "action": "OPEN",
    "items": [
      "ab0c9758d97cde4d5051e6149922f9163771347093144749516eac5317e224d6",
      "00000000",
      "6465746f6f"
    ]
  },
  "coinbase": false,
  "hash": "12686799a04328f84f3436a33ffce9123a8c0c6e216842aa60fbca72340722fe",
  "index": 0
}
{
  "version": 0,
  "height": 4546,
  "value": 10000000,
  "address": "ts1qux0u2ufxss6r23eu3clsd49aptqal868fr0ue8",
  "covenant": {
    "type": 3,
    "action": "BID",
    "items": [
      "ab0c9758d97cde4d5051e6149922f9163771347093144749516eac5317e224d6",
      "1c110000",
      "6465746f6f",
      "74f4412e9597b133b89f43cae23ca52e6438b67243e48167f669a91ace6203f8"
    ]
  },
  "coinbase": false,
  "hash": "aefdae7e9b3e819348703adabbff06048b52e34f2241f094a9868f8f1ca1f231",
  "index": 0
}
{
  "version": 0,
  "height": 4575,
  "value": 8000000,
  "address": "ts1qcwjav2cxs03kmqw3rruwnuhnlkezkyz8gszr7v",
  "covenant": {
    "type": 3,
    "action": "BID",
    "items": [
      "ab0c9758d97cde4d5051e6149922f9163771347093144749516eac5317e224d6",
      "1c110000",
      "6465746f6f",
      "0da9a35a6cce738c89bdcc015d3ca0992f35ad94c9dc1680fb55daaf96b097eb"
    ]
  },
  "coinbase": false,
  "hash": "03c7c646bd68831f89be005aee7753d6b2f0d6772f66d62d24d7e73ff3512b53",
  "index": 0
}
{
  "version": 0,
  "height": 4744,
  "value": 4000000,
  "address": "ts1qcwjav2cxs03kmqw3rruwnuhnlkezkyz8gszr7v",
  "covenant": {
    "type": 4,
    "action": "REVEAL",
    "items": [
      "ab0c9758d97cde4d5051e6149922f9163771347093144749516eac5317e224d6",
      "1c110000",
      "a0917e698f710aa416a6c32d1f8845180f3a6ddb75d19743ee096163862d0588"
    ]
  },
  "coinbase": false,
  "hash": "e27ae33f7539b55543641b4581940c72b327bf86e4072b2c13aecbd344da3cdd",
  "index": 0
}
{
  "version": 0,
  "height": 4746,
  "value": 5000000,
  "address": "ts1qux0u2ufxss6r23eu3clsd49aptqal868fr0ue8",
  "covenant": {
    "type": 4,
    "action": "REVEAL",
    "items": [
      "ab0c9758d97cde4d5051e6149922f9163771347093144749516eac5317e224d6",
      "1c110000",
      "615cd11f85fc01ef9ea99d7d69bd7513a701c6c154c1a25102ea4d4ef7d9a32a"
    ]
  },
  "coinbase": false,
  "hash": "3071ac33bc04b1077d8b965aa0fde8734db8992043bdecbb6d41dac8f2d86be6",
  "index": 0
}
  • Wait for reveal stage over

  • Failed to register from my wallet README tweaks #1 (the tx never gone through):

{
  "version": 0,
  "height": -1,
  "value": 0,
  "address": "ts1qux0u2ufxss6r23eu3clsd49aptqal868fr0ue8",
  "covenant": {
    "type": 6,
    "action": "REGISTER",
    "items": [
      "ab0c9758d97cde4d5051e6149922f9163771347093144749516eac5317e224d6",
      "1c110000",
      "000019000906036e7331076578616d706c6503636f6d00010203040000000000000000000000000000000000",
      "b1ef2d9b7ffeecb1a8e539bfd1bee8f21f4c2ce0a24ed27a62ff1bfe319b3cc2"
    ]
  },
  "coinbase": false,
  "hash": "c3394db57a9c97cbc43dbf86577c214afd73e1aeb856c27af78da1d1b75a1efd",
  "index": 0
}
{
  "version": 0,
  "height": -1,
  "value": 0,
  "address": "ts1qcwjav2cxs03kmqw3rruwnuhnlkezkyz8gszr7v",
  "covenant": {
    "type": 6,
    "action": "REGISTER",
    "items": [
      "ab0c9758d97cde4d5051e6149922f9163771347093144749516eac5317e224d6",
      "1c110000",
      "000019000906036e7331076578616d706c6503636f6d00010203040000000000000000000000000000000000",
      "619108b1ae8c8f6ebcad7cca15826c2d323e5806244ca531e5ab98bdec47718f"
    ]
  },
  "coinbase": false,
  "hash": "e67eba42314a234d4cc4b49016bfd0e89a3f293f23b15eb3364ad2d3e6fdc767",
  "index": 0
}

At this point I assumed maybe I have lost both bids, but I couldn’t redeem any of the wallets, either. I would get an error message “No reveals to redeem”. Did I miss something in the process?

@chjj
Copy link
Contributor

chjj commented Aug 16, 2018

It looks like both wallets missed the others' bids and can't calculate the second-highest bid correctly. Investigating.

@tynes tynes added bug general - Something isn't working advanced labels Mar 22, 2019
@wi-ski
Copy link
Contributor

wi-ski commented Aug 4, 2019

Hi - while encountering a similar issue, I was trying to determine a would-be canonical way to determine if a bid won or lost. Is there a "prescribed" way of doing that?

Currently, getting a Could not resolve preferred inputs. error when an account with a losing bid tries to post a sendupdate call

@pinheadmz
Copy link
Member

@wi-ski I wonder if this is related to #231
and that the patch at #233 should be extended to check for conflicting accounts when sendupdate is called. I thought it wouldn't be an issue because there is only one name "owner" at the end of the auction, but maybe the losing account is trying to send the update... Did you you get this problem after running on the #233 branch?

@wi-ski
Copy link
Contributor

wi-ski commented Aug 5, 2019

Yes sir, I was running the #233 branch. I took a stab with: pinheadmz#1

I don't understand all the ins-and-outs of how covenants work - so I may be missing something downstream, but I believe the issue is just a misleading error.

@pinheadmz
Copy link
Member

@Detoo Any chance we could get an update on this? There's been lots of code improvements since the issue was open, and a possible solution in this discussion.

@pinheadmz
Copy link
Member

Closing this due to inactivity.
The current best way to determine if you won an auction is to examine the OWNER of a name, and then query the wallet for that coin. If your waller owns the OWNER coin, the name is yours.

You can see how this is computed in Bob wallet:

https://github.com/kyokan/bob-wallet/blob/f06b015c346585ccc560c146800059d7e53649d2/app/ducks/names.js#L71-L73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug general - Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants