Skip to content
#

Ethereum

ethereum logo

Ethereum is a decentralized platform that runs contract-based applications without any possibility of downtime, censorship, fraud or third-party interference. Ethereum blockchain focuses on running the code of any decentralized application.

Here are 15,732 public repositories matching this topic...

barwod
barwod commented Dec 22, 2021

System information

Geth
Version: 1.10.13-stable
Git Commit: 7a0c19f813e285516f4b525305fd73b625d2dec8
Architecture: amd64
Go Version: go1.17.3
Operating System: linux
GOPATH=
GOROOT=go

Expected behaviour

Close files that aren't in use / have a settable limit

Actual behaviour

Every database file it opens stays open for the duration of the sync

Steps to re

ZumZoom
ZumZoom commented Jun 24, 2022

When doing division and modulo operation with constant or immutable denominator it is possible to only do compile-time denominator check and skip runtime checks.

Consider following contracts:

pragma solidity 0.8.15;

uint256 constant _MODULE = 17;

contract C1 {
    function f(uint256 a) external pure returns(uint256) {
        return a % _MODULE;
    }
}

contract C2 
gakonst
gakonst commented Jul 1, 2022

Using the same command from above:

$ cast tx 0xbedc92801b8a7128898f484006f9e9fb795630f1826f35dd3544db38c07594ab --rpc-url $ARBITRUM_RPC_URL

blockHash            0x918b0fbe7235f5a058890653f82c5e483ff0bbd1c84668e930e19b424e034540
blockNumber          9060440
from                 0x22222b7c879e6c09690d1e5eb10437e68987882c
gas                  0
gasPrice             0
hash             
T-bug good first issue C-cast

Created by Vitalik Buterin

Released July 30, 2015

Organization
ethereum
Website
www.ethereum.org
Wikipedia
Wikipedia

Related Topics

blockchain cryptocurrency