Commit graph

14123 commits

Author SHA1 Message Date
noot
3949530a42
Merge pull request #18 from astriaorg/noot/update-deps
fix: update deps
2023-06-08 15:02:28 +02:00
elizabeth
9a18829d85 update deps 2023-06-07 16:04:33 -04:00
noot
d0a5efa7a1
Merge pull request #17 from astriaorg/noot/fix-deps
fix: update deps
2023-06-07 17:09:25 +02:00
jesse snyder
7eb4e3f589
Update Protos (#16)
* uses new protos

* remove old protos
2023-06-07 09:03:46 -06:00
elizabeth
f494f5fbf3 update deps 2023-06-07 10:44:13 -04:00
noot
db5a35e093
Merge pull request #15 from astriaorg/noot/bump
bump metro-transactions dep
2023-06-01 14:30:53 +02:00
elizabeth
8c7adc9ec0 bump metro-transactions dep 2023-06-01 08:18:44 -04:00
noot
8b9ba616d1
implement FinalizeBlock gRPC call 2023-05-12 11:45:35 -05:00
elizabeth
bd9c1dfcdf implement FinalizeBlock gRPC call 2023-05-09 21:35:22 -04:00
jesse snyder
c2d33eb566
Features and fixes needed for contract deployment test (#13)
* add and remove tx from geth mempool so forge can deploy a contract

* pass metro addr and port by flag

* fixes from pr feedback

* formatting
2023-04-20 13:55:36 -06:00
jesse snyder
e19690c976
fix arm builds. only build arm for tags and merges to default branch. (#12)
* fix arm builds. only build arm for tags and merges to default branch.

* fix gh action function syntax

* more correct comment

* build for semver tags
2023-04-17 12:22:53 -06:00
jesse snyder
85e02621ef
use v4 of build and push action (#10)
* use FROM --platform=$BUILDPLATFORM to build arm images correctly

* use v4 of docker build and push
2023-04-11 10:16:52 -05:00
noot
7c2420ddb8
Merge pull request #11 from astriaorg/noot/grpc-update
grpc: rename StateRoot to BlockHash
2023-04-11 11:05:08 -04:00
elizabeth
84c9c1ab3c Merge branch 'astria' of github.com:astriaorg/go-ethereum into noot/grpc-update 2023-04-10 19:17:42 -04:00
elizabeth
fa494afd97 rename state_root to block_hash 2023-04-10 19:16:59 -04:00
jesse snyder
f2dfd71721
use FROM --platform=$BUILDPLATFORM to build arm images correctly (#9) 2023-04-10 16:22:06 -05:00
jesse snyder
d37cc2c219
tag image with latest for builds from astria branch (#8) 2023-04-10 12:54:33 -05:00
Jordan Oroshiba
f91e86a130
Adding features to mempool to support our pre-ordered txs (#2)
* Adding features to mempool to support our pre-ordered txs

* Add framing for gRPC to execute blocks

* Remove public engine API call

* Fix circular dependencies

* Updated to use new Init, and fill out starting attributes

* Add clear astriaordered, cleanup

* readme fix

* add bash and jq to final docker image

* make txpool interface

* no more panics, update DoBlock to also update state + store block

* cleanup

* set post-merge at genesis

* cleanup

* doc update

* remove txpool interface changes

* cleanup

* cleanup

* build and push images wih tags defined by git tags

* build for multiple architectures. use docker-metadata action for semver

* add push: true

* only build arm for git tags/releases

---------

Co-authored-by: Jesse Snyder <jessetsnyder@gmail.com>
Co-authored-by: elizabeth <elizabethjbinks@gmail.com>
2023-04-10 12:21:41 -05:00
noot
5ec91e0268
submit transactions to metro instead of geth's mempool 2023-03-29 18:44:05 -04:00
elizabeth
8a9d8f8c40 update metro-transactions dep 2023-03-29 18:43:40 -04:00
elizabeth
eadb768025 add localnet genesis 2023-03-29 17:48:13 -04:00
elizabeth
3c478d770d Merge branch 'astria' of github.com:astriaorg/go-ethereum into noot/metro 2023-03-29 17:31:07 -04:00
Jesse Snyder
a9b73b46ac Merge branch 'master' into astria
* master:
  docs: update outdated DeriveSha docs comment (#26968)
  internal/debug: add log.logfmt flag to set logging to use logfmt (#26970)
  eth/tracers/native: prevent panic for LOG edge-cases (#26848)
  graphql: fix data races (#26965)
  core/state: use atomic.Bool (#26992)
  core/bloombits: use atomic type (#26993)
  core/vm: use atomic.Bool (#26951)
  metrics/librato: ensure resp.body closed (#26969)
  core/state, trie: remove Try prefix in Trie accessors (#26975)
  ethclient: ensure returned subscription is nil on error (#26976)
2023-03-29 15:11:18 -06:00
elizabeth
226f2bfb16 update SubmitTransaction to send tx to metro 2023-03-29 14:46:08 -04:00
jesse snyder
97a0ee26ab
Feature/containerize (#6)
* containerize w/ github action to build and push to ghcr

* fix gh action yml syntax

* enable manual trigger

* fix syntax

* dont use github action, do it ourselves

* push manually

* correct multi line
2023-03-28 17:32:15 -06:00
jesse snyder
be97c9232f
build and push manually (#5)
* containerize w/ github action to build and push to ghcr

* fix gh action yml syntax

* enable manual trigger

* fix syntax

* dont use github action, do it ourselves

* push manually
2023-03-28 17:28:31 -06:00
jesse snyder
3323bdd21c
fix gh action syntax (#4)
* containerize w/ github action to build and push to ghcr

* fix gh action yml syntax

* enable manual trigger

* fix syntax
2023-03-28 17:15:58 -06:00
jesse snyder
1172ff42f9
containerize w/ github action to build and push to ghcr (#3) 2023-03-28 16:59:33 -06:00
David Murdoch
7ca4f60a1a
docs: update outdated DeriveSha docs comment (#26968) 2023-03-28 08:59:37 -04:00
Adrian Sutton
56c1f98f8a
internal/debug: add log.logfmt flag to set logging to use logfmt (#26970) 2023-03-28 15:37:40 +03:00
jwasinger
fd94b4fcfa
eth/tracers/native: prevent panic for LOG edge-cases (#26848)
This PR fixes OOM panic in the callTracer as well as panicing on
opcode validation errors (e.g. stack underflow) in callTracer and
prestateTracer.

Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-03-28 11:46:53 +02:00
Sina Mahmoodi
a236e03d00
graphql: fix data races (#26965)
Fixes multiple data races caused by the fact that resolving fields are done concurrently by the graphql library. It also enforces caching at the stateobject level for account fields.
2023-03-28 03:08:10 -04:00
s7v7nislands
fb8a3aaf1e
core/state: use atomic.Bool (#26992) 2023-03-28 03:06:50 -04:00
s7v7nislands
79532a25b1
core/bloombits: use atomic type (#26993) 2023-03-28 03:05:29 -04:00
Jesse Snyder
c7715ff9c8 update readme 2023-03-27 19:05:46 -06:00
jesse snyder
ca5dc0e3c3
Feature/grpc execution api (#1)
* add buf config and generated grpc code

* poc e2e grpc communication

* comment out panicking code

* logging help

* now reads cli args. now stops grpc server on shutdown.

* add mutex to GRPCServerHandler
2023-03-27 13:30:46 -06:00
s7v7nislands
881fed032c
core/vm: use atomic.Bool (#26951)
Make use of new atomic types
---------

Co-authored-by: Felix Lange <fjl@twurst.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-03-27 09:40:20 -04:00
Delweng
117530b0e6
metrics/librato: ensure resp.body closed (#26969)
This change ensures that we call Close on a http response body, in various places in the source code (mostly tests)
2023-03-27 07:44:41 -04:00
Guillaume Ballet
41f89ca944
core/state, trie: remove Try prefix in Trie accessors (#26975)
This change renames StateTrie methods to remove the Try* prefix. 

We added the Trie methods with prefix 'Try' a long time ago, working
around the problem that most existing methods of Trie did not return the
database error. This weird naming convention has persisted until now.

Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2023-03-27 10:48:46 +02:00
norwnd
df383addee
ethclient: ensure returned subscription is nil on error (#26976) 2023-03-25 22:38:43 +01:00
ucwong
792d893ed0
rlp/rlpgen: print want/expect output string if mismatch (#26932)
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
2023-03-24 14:17:39 +01:00
Martin Holst Swende
0137bd69c5
go.mod: update golang.org/x/tools (#26960) 2023-03-24 12:39:20 +01:00
aaronbuchwald
b1acaf47aa
eth/gasprice: change feehistory input type from int to uint64 (#26922)
Change input param type from int to uint64
2023-03-23 16:12:37 -04:00
Martin Holst Swende
f6c3a534a4
metrics/influxdb: use smaller dependency and reuse code between v1 and v2 reporters (#26963)
This change switches to use the smaller influxdata/influxdb1-client package instead of depending on the whole infuxdb package. The new smaller client is very similar to the influxdb-v2 client, which made it possible to refactor the two reporters to reuse code a lot more.
2023-03-23 15:12:32 -04:00
turboboost55
7dc100714d
metrics: add cpu counters (#26796)
This PR adds counter metrics for the CPU system and the Geth process.
Currently the only metrics available for these items are gauges. Gauges are
fine when the consumer scrapes metrics data at the same interval as Geth
produces new values (every 3 seconds), but it is likely that most consumers
will not scrape that often. Intervals of 10, 15, or maybe even 30 seconds
are probably more common.

So the problem is, how does the consumer estimate what the CPU was doing in
between scrapes. With a counter, it's easy ... you just subtract two
successive values and divide by the time to get a nice, accurate average.
But with a gauge, you can't do that. A gauge reading is an instantaneous
picture of what was happening at that moment, but it gives you no idea
about what was going on between scrapes. Taking an average of values is
meaningless.
2023-03-23 14:13:50 +01:00
Guillaume Ballet
8990c92aea
core/state: add account address to Trie slot accessors (#26934)
This changes the Trie interface to add the plain account address as a
parameter to all storage-related methods.

After the introduction of the TryAccount* functions, TryGet, TryUpdate and
TryDelete are now only meant to read an account's storage. In their current
form, they assume that an account storage is stored in a separate trie, and
that the hashing of the slot is independent of its account's address.

The proposed structure for a stateless storage breaks these two
assumptions: the hashing of a slot key requires the address and all slots
and accounts are stored in a single trie.

This PR therefore adds an address parameter to the interface. It is ignored
in the MPT version, so this change has no functional impact, however it
will reduce the diff size when merging verkle trees.
2023-03-23 11:52:22 +01:00
lightclient
37ecff0967
cmd/evm, tests: record preimages if dump is expected (#26955)
With #25287 we made it so that preimages were not recorded by default. This had the side effect that the evm command is no longer able to dump state since it does a preimage lookup to determine the address represented by a key.

This change enables the recording of preimages when the dump command is given.
2023-03-23 05:15:40 -04:00
Delweng
7f3fc15a8b
core/rawdb: update freezertable read meter (#26946)
The meter for "for measuring the effective amount of data read" within the freezertable was never updated. This change remedies that. 
---------

Signed-off-by: jsvisa <delweng@gmail.com>
2023-03-23 03:34:40 -04:00
Marius van der Wijden
20f8eb756b
eth/catalyst: fix races (#26950) 2023-03-22 13:36:26 -04:00
Martin Holst Swende
b3f43c89b3
core/vm: expose jumptable constructors (#26880)
When interacting with geth as a library to e.g. produce state tests, it is desirable to obtain the consensus-correct jumptable definition for a given fork. This changes adds accessors so the instructionset can be obtained and characteristics about opcodes can be inspected.
2023-03-21 07:14:47 -04:00