Publishing - Show takeover time if claim is being outbid #633

Open
opened 2017-09-28 00:32:19 +02:00 by tzarebczan · 5 comments
tzarebczan commented 2017-09-28 00:32:19 +02:00 (Migrated from github.com)

The Issue

Breaking out issues discussed (mostly by me) from https://github.com/lbryio/lbry-app/issues/214

Currently, when taking over a claim held by someone else, users are not notified how long it will take for their claim to successfully complete the takeover process (i.e. resolve at the requested vanity name). They can see this information in the #content channel on Slack, but otherwise its a mystery.

When a user is overbidding on an existing claim, the App should tell them how long it will take until their bid is the highest at the vanity name.

If this requires some daemon side work, let me know and I can open an issue there.

Expected behaviour

LBRY app shows how long it will take to outbid successfully

Actual behaviour

No indication that there is a delay in the takeover process

System Configuration

  • LBRY Daemon version: 0.16.1
  • LBRY App version: 0.16.0
  • LBRY Installation ID:
  • Operating system: Windows

Anything Else

Screenshots

<!-- Thanks for reporting an issue to LBRY and helping us improve! To make it possible for us to help you, please fill out below information carefully. Before reporting any issues, please make sure that you're using the latest version. - App releases: https://github.com/lbryio/lbry-app/releases - Standalone daemon: https://github.com/lbryio/lbry/releases We are also available on Slack at https://slack.lbry.io --> ## The Issue Breaking out issues discussed (mostly by me) from https://github.com/lbryio/lbry-app/issues/214 Currently, when taking over a claim held by someone else, users are not notified how long it will take for their claim to successfully complete the takeover process (i.e. resolve at the requested vanity name). They can see this information in the #content channel on Slack, but otherwise its a mystery. When a user is overbidding on an existing claim, the App should tell them how long it will take until their bid is the highest at the vanity name. If this requires some daemon side work, let me know and I can open an issue there. ### Expected behaviour LBRY app shows how long it will take to outbid successfully ### Actual behaviour No indication that there is a delay in the takeover process ## System Configuration <!-- For the app, this info is in the About section at the bottom of the Help page. You can include a screenshot instead of typing it out --> <!-- For the daemon, run: curl 'http://localhost:5279' --data '{"method":"version"}' and include the full output --> - LBRY Daemon version: 0.16.1 - LBRY App version: 0.16.0 - LBRY Installation ID: - Operating system: Windows ## Anything Else <!-- Include anything else that does not fit into the above sections --> ## Screenshots <!-- If a screenshot would help explain the bug, please include one or two here -->
tzarebczan commented 2017-09-28 00:38:47 +02:00 (Migrated from github.com)

Something to think about:
Do we also take into consideration other "waiting to take over claims" when showing the user the minimum bid amount? If so, how do we do that if the effective amount is 0 while the takeover is in process. I think it takes 6 blocks for an effective amount to show properly.

Something to think about: Do we also take into consideration other "waiting to take over claims" when showing the user the minimum bid amount? If so, how do we do that if the effective amount is 0 while the takeover is in process. I think it takes 6 blocks for an effective amount to show properly.
lyoshenka commented 2017-10-03 14:10:17 +02:00 (Migrated from github.com)

Here's some code I wrote a while ago to calculate the takeover time (or maybe the daemon should return this?)

// the following is based on https://lbry.io/faq/claimtrie-implementation
const lastTakeoverHeight = claimsForName['nLastTakeoverHeight'],
maxDelay = 4032, // 7 days of blocks at 2.5min per block
activationDelay = Math.min(maxDelay, Math.floor((claimBlockHeight - lastTakeoverHeight) / 32)),
takeoverHeight = claimBlockHeight + activationDelay,
secondsPerBlock = 161, // in theory this should be 150, but in practice its closer to 161
takeoverTime = Date.now() + ((takeoverHeight - currentHeight) * secondsPerBlock * 1000);
Here's some code I wrote a while ago to calculate the takeover time (or maybe the daemon should return this?) ``` // the following is based on https://lbry.io/faq/claimtrie-implementation const lastTakeoverHeight = claimsForName['nLastTakeoverHeight'], maxDelay = 4032, // 7 days of blocks at 2.5min per block activationDelay = Math.min(maxDelay, Math.floor((claimBlockHeight - lastTakeoverHeight) / 32)), takeoverHeight = claimBlockHeight + activationDelay, secondsPerBlock = 161, // in theory this should be 150, but in practice its closer to 161 takeoverTime = Date.now() + ((takeoverHeight - currentHeight) * secondsPerBlock * 1000); ```
liamcardenas commented 2017-11-20 21:28:48 +01:00 (Migrated from github.com)

@tzarebczan can you open up a daemon side issue?

@tzarebczan can you open up a daemon side issue?
liamcardenas commented 2017-12-15 00:08:53 +01:00 (Migrated from github.com)

@tzarebczan did you have time to open up a daemon side issue yet?

@tzarebczan did you have time to open up a daemon side issue yet?
tzarebczan commented 2017-12-15 00:25:01 +01:00 (Migrated from github.com)

Sorry, I'm still behind on follow up on my github issues :)

Just opened https://github.com/lbryio/lbry/issues/1031, will mark it dependent.

Sorry, I'm still behind on follow up on my github issues :) Just opened https://github.com/lbryio/lbry/issues/1031, will mark it dependent.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#633
No description provided.