-
Notifications
You must be signed in to change notification settings - Fork 279
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
Order of bids #453
Comments
Related: bcoin-org/bcoin#605 We need wallet pagination anyway. It is a major overhaul and never merged into bcoin. |
A simple way to do this is to add https://github.com/handshake-org/hsd/blob/master/lib/wallet/txdb.js#L3776-L3824 and then insert it https://github.com/handshake-org/hsd/blob/master/lib/wallet/txdb.js#L1883-L1903
This would require a wallet database migration for all users if the upgrade is pushed, and then the I don't personally see the use case for this. Can you elaborate? Bids are bids. They are locked in, their order does not matter. |
The https://github.com/handshake-org/hsd/blob/master/lib/blockchain/chain.js#L2535 https://hsd-dev.org/api-docs/#get-coin-by-outpoint Changing the wallet indexes in a way that requires a migration is risky and we should try to make sure that its only done if absolutely necessary. |
For example to see what happens after I make a bid, i.e. the behaviour of other bidders. So I need to see the order of past and upcoming bids. |
The |
Reproduce: call /auction/name or /bid/name for the name with several bids. Observe the order of bids in the output.
The problem is that bids are sorted not by the block height in which they occurred, but by their hash (or hash of their block), which is quite useless.
The same may stand for some other transaction lists (reveals?).
And explicitly including the block height of transaction in the output would be also nice.
The text was updated successfully, but these errors were encountered: