aeternity / aeternal

Æterrnal--the caching and reporting layer for the æternity blockchain
https://aeternal.io
ISC License
18 stars 10 forks source link

Name auctions request by length doesn't show auctions #239

Open CedrikNikita opened 4 years ago

CedrikNikita commented 4 years ago

https://testnet.aeternal.io/middleware/names/auctions/hello.chain/info

{"bids":[{"block_height":170139
,"block_hash":"mh_4y98thADJdJchH21dVK2ugcxeikBsA2kDoPWFxQPCCgoiLC7e",
"hash":"th_2BTcJZFZpXKP2Mp57zQhqhh78xpCxe43e5bMbHL74EmoVMWaD",
"signatures":"sg_Liuk1j7dKByjroeCHiw4nLviU8g4CuJZuJGjGSciiRHaGc4TgjvQ4YeRSt9u4LZTCmakyrFWLih5VtAXa3fUrxmCk8Y8h",
"tx_type":"NameClaimTx","tx":{"account_id":"ak_DBjmVoUbHqox8vhUuXLSrJqUZLskQ1Vmmi8jWyg2xH6aS1qTh",
"fee":16540000000000,
"name":"hello.chain",
"name_fee":83204000000000000000,
"name_salt":3315947385604205,
"nonce":2,"type":"NameClaimTx",
"version":2
},
"fee":"16540000000000","size":204}],"info":{"name":"hello.chain",
"expiration":185019,
"winning_bid":"83204000000000000000",
"winning_bidder":"ak_DBjmVoUbHqox8vhUuXLSrJqUZLskQ1Vmmi8jWyg2xH6aS1qTh"}}

Not only on this particular length, but at any https://testnet.aeternal.io/middleware/names/auctions/active?length=11&limit=5&page=1

[]

It doesn't shown here as well https://testnet.aeternal.io/auctions

johnsnewby commented 4 years ago

I see it:

image

davidyuk commented 4 years ago

Some confusion happened, Nikita can explain better

j28 commented 4 years ago

@johnsnewby here is the issue:

1) user claims a name ex. 997997997.chain 2) name appears in user's active bids 3) name is not part of the list returned when we query mdw by char length (9)

[the name 997997997.chain should be part of the list returned when querying by char length of 9]

johnsnewby commented 4 years ago

Ah yes, my implementation does total length, so add 6 to get the correct length

CedrikNikita commented 4 years ago

mdw

davidyuk commented 4 years ago

it looks like that there are no any auctions on testnet, is that possible?