New answers tagged

0

You could use Infura's API. Specifically, you should look into the "getBlockByNumber" section. You will need to register a new free account and get an API key to be able to use the endpoint. Example query from the docs: curl https://mainnet.infura.io/v3/YOUR-PROJECT-ID \ -X POST \ -H "Content-Type: application/json" \ -d '{&...


2

When you want to use an integer on a system where the size of the integer is larger than the system's word size, you explicity use a fixed-width integer. This allows you to use, for example, 64-bit integers on 32-bit systems by explicitly using uint64 rather than uint, big.Int, etc. (depending on language). To cut a long story short, there was a bug in the ...


1

When verifying the block header, the Geth client runs the following check: // Verify the header's timestamp if !uncle { if header.Time > uint64(unixNow+allowedFutureBlockTimeSeconds) { return consensus.ErrFutureBlock } } allowedFutureBlockTimeSeconds is defined as: allowedFutureBlockTimeSeconds = int64(15) So 15 seconds in the future, ...


Top 50 recent answers are included