Open tzarebczan opened 7 years ago
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.
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);
@tzarebczan can you open up a daemon side issue?
@tzarebczan did you have time to open up a daemon side issue yet?
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.
Anything Else
Screenshots