API function: Current Block ID

Front Page Forums Development API function: Current Block ID

This topic contains 6 replies, has 2 voices, and was last updated by  Ross 7 months, 3 weeks ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #5336 Reply

    Ross

    Hi, every time I call the API function for getting the current block ID, it returns the same value, 282574.

    I thought this would return the most recently created block, i.e. as of right now, 317435. It’s like it is stuck and not increasing (block 282574 is from 4th January), surely it should increase every 30 seconds?

    Am I assuming the wrong thing about this function or is it not working correctly?

    Thanks

    #5340 Reply

    Dave

    Hi Ross,

    Thanks for alerting us to this, there definitely seems to be a problem. We’ll take a look at this and try to solve the issue asap.

    Thanks

    #5342 Reply

    glemiere

    If JSECoin is a success, I’ll buy a haircut to Dave, lol!

    #5343 Reply

    Dave

    Ha ha, thanks Glemiere 🙂

    #5348 Reply

    Ross

    I assume you’re still working on this, but if it helps it does seem to be periodically updating now, but still lags a few hours behind the actual current block. It is now the same day at least but for example I’m currently getting block 323218, which is approx. 6 hours ago.

    #5377 Reply

    JSE Admin
    Keymaster

    Hi just an update that this should now be fixed. It was caused when we removed the global listener for the currentBlockID variable and didn’t update the API accordingly. It’s now fixed and providing the real-time blockID.

    #5387 Reply

    Ross

    That’s great, thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: API function: Current Block ID
Your information: