BeamMW / beam

Beam: Scalable Confidential Cryptocurrency. Leading the way to Confidential DeFi
https://beam.mw
Apache License 2.0
699 stars 202 forks source link

Explorer node: Add block duration (relative and absolute) to the 'hdrs' request #1983

Open dbadol opened 3 weeks ago

dbadol commented 3 weeks ago

Current situation The new 'hdrs' request feature allows requesting a series of values, both in relative and absolute terms. However, the duration of each block is not part of the provided information, although it's an interesting information for both users, developers and miners.

Solution we propose In the frame of #1982, we propose to add parameter 't' for the period of time covered by the block (i.e. time in seconds since the previous block) and 'T' for its absolute (cumulative) value, which is then the total age of the blockchain, in seconds.