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,723 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 
paulrberg
paulrberg commented Jul 2, 2022

Component

Forge, Anvil

Describe the feature you would like

When broadcasting transactions with the recently introduced Solidity scripts, a broadcasts folder with the following structure gets created:

|-- broadcasts
  `-- SCRIPT_NAME
    `-- CHAIN_ID
      `-- run-TIMESTAMP.json
      `-- run-latest.json

It's up to each user to decide what chains to git ig

good first issue T-feature C-forge P-low

Created by Vitalik Buterin

Released July 30, 2015

Organization
ethereum
Website
www.ethereum.org
Wikipedia
Wikipedia

Related Topics

blockchain cryptocurrency