Commit graph

13191 commits

Author SHA1 Message Date
Sandeep Sreenath
ecc0fb1e56 updated golang version in github workflow 2021-10-12 00:05:08 +05:30
Sandeep Sreenath
91f4d1b3f7
Merge pull request #203 from maticnetwork/release_v0.2.9
bumped version to v0.2.9
2021-10-11 15:40:55 +05:30
Sandeep Sreenath
db99e0b987
Merge pull request #204 from eltociear/patch-2
core: fix typo in iterator.go
2021-10-11 15:39:47 +05:30
Ikko Ashimine
5840ddaa7e
core: fix typo in iterator.go
strorage -> storage
2021-10-09 13:43:36 +09:00
Sandeep Sreenath
199cb61c39
Merge pull request #193 from maticnetwork/uttam/docs
Updated ReadMe File
2021-10-08 17:02:25 +05:30
Sandeep Sreenath
32c60bb2f9 updated version 2021-10-08 16:57:07 +05:30
Uttam Singh
c8ae50daf0
Update README.md 2021-10-08 16:56:50 +05:30
Sandeep Sreenath
12c2a3f907
Merge pull request #202 from maticnetwork/feature-hot-fix-memory
Limit binary search to local height
2021-10-08 15:20:53 +05:30
Sandeep Sreenath
a9c71eff57
Merge pull request #201 from maticnetwork/fix-memory-leak
Fix memory leak in txpool
2021-10-08 00:15:13 +05:30
Ferran Borreguero
1d2ebeb9a0 Fix memory leak in txpool 2021-10-07 09:13:01 +02:00
Sandeep Sreenath
7368ca6888
Merge pull request #185 from maticnetwork/krishna/network-flags
Network flags
2021-10-06 17:01:00 +05:30
Krishna Upadhyaya
cf809b4a22 fix typo 2021-09-23 10:56:17 +05:30
Krishna Upadhyaya
73af371938 update: default sync mode to snap 2021-09-21 16:13:49 +05:30
Krishna Upadhyaya
00b5788793 change: mumbai to bor-mumbai 2021-09-21 14:58:11 +05:30
Uttam Singh
8a4b03b632
Update README.md 2021-09-20 16:30:07 +05:30
Uttam Singh
e34ecdbcd2
Update README.md 2021-09-20 16:28:49 +05:30
Uttam Singh
270179a8e4
Update README.md 2021-09-20 16:27:55 +05:30
Uttam Singh
aa74e19fc5
Update README.md 2021-09-20 16:26:10 +05:30
Ferran Borreguero
54d3cf40e5 Limit binary search to local height 2021-09-20 10:30:10 +02:00
Krishna Upadhyaya
0c4366ea6a
Merge pull request #192 from maticnetwork/uttam/mainnet
Add: Bor mainnet network flag
2021-09-20 11:46:04 +05:30
Uttam Singh
6c7a9e1c41 minor changes 2021-09-20 11:38:39 +05:30
Uttam Singh
b897d9fd64 minor changes 2021-09-20 11:26:29 +05:30
Uttam Singh
da11e05e45 minor changes 2021-09-19 21:23:01 +05:30
Uttam Singh
f088f1f24f Added BorMainnet 2021-09-17 13:39:29 +05:30
Krishna Upadhyaya
440ffaa488 revert deleted goerli flag 2021-09-02 21:05:13 +05:30
Krishna Upadhyaya
6f54d66cac add: mumbai geth config updated 2021-09-02 19:55:04 +05:30
Krishna Upadhyaya
2f40184dd1 cleanup: remove unused data 2021-09-01 15:15:34 +05:30
Krishna Upadhyaya
4edbd3179c update: go version 2021-09-01 15:09:04 +05:30
Krishna Upadhyaya
adbd18f42c fix: genesis alloc issue 2021-09-01 15:04:25 +05:30
Sandeep Sreenath
3283fb9a88
Merge pull request #182 from eltociear/patch-1
fix typo in tracers/api.go
2021-09-01 15:03:36 +05:30
Sandeep Sreenath
3da6e8afa4
Merge pull request #175 from maoueh/patch-1
Fixed wrong version for Bor
2021-09-01 14:50:03 +05:30
Krishna Upadhyaya
700d7bcdf4 add: mumbai network flag 2021-09-01 01:56:09 +05:30
Ikko Ashimine
39cefd6fdf
fix typo in tracers/api.go
Constuct -> Construct
2021-08-31 20:34:00 +09:00
Sandeep Sreenath
a55141c7e7
Merge branch 'master' into patch-1 2021-08-31 14:29:13 +05:30
Sandeep Sreenath
0a9bd7befd
Merge pull request #178 from maticnetwork/krishna/header-hash-fix
Geth master update
2021-08-30 17:08:29 +05:30
noah40povis
675ecef22c
Added bash to docker container (#177)
* added bash to docker container

* Update Dockerfile

Co-authored-by: Sandeep Sreenath <ssandeep@users.noreply.github.com>

Co-authored-by: Sandeep Sreenath <ssandeep@users.noreply.github.com>
2021-08-30 13:43:35 +05:30
Krishna Upadhyaya
a49bc2172a Merge remote-tracking branch 'go-ethereum/master' into krishna/header-hash-fix 2021-08-28 12:50:40 +05:30
lightclient
ffae2043f0
internal/ethapi: support both input and data for personal_sendTransaction (#23476)
Currently, setDefaults overwrites the transaction input value if only input is provided. This causes personal_sendTransaction to estimate the gas based on a transaction with empty data. eth_estimateGas never calls setDefaults so it was unaffected by this.
2021-08-27 14:11:15 +02:00
Martin Holst Swende
62ad17fb00
Revert "eth, internal/ethapi: make RPC block miner field show block sealer correctly (#23312)" (#23466)
This reverts commit 57feabea66.
2021-08-26 08:35:37 +02:00
Sina Mahmoodi
108eec3fee
node: remove dependency on wallet backend packages (#23019)
* accounts: new AddBackends method in manager

* node,cmd/geth: mv accman backend init to cmd/geth

* node,cmd/geth: mv scrypt config downstreawm from node

* accounts: use static buffer size for accman sub chan

minor fix

* accounts,cmd/geth: update accman backends through its event loop

* accounts,node: add comments

* accounts: un-export newBackendEvent

* accounts: use chan instead of wg in newBlockEvent

* node: rename isKeyDirEphem

* accounts,cmd: AddBackends->AddBackend

* accounts: fix potential blocking when adding backend
2021-08-25 22:34:22 +02:00
Felix Lange
d584e39862
build: stop publishing deb packages for Ubuntu 20.10 Groovy Gorilla (#23470)
Support for this Ubuntu release has ended on July 22 2021 and
Launchpad no longer accepts uploads for it.
2021-08-25 21:57:31 +02:00
Dmitry Zenovich
7c4cad064c
rpc: add BlockNumber.MarshalText (#23324)
Currently rpc.BlockNumber is marshalled to JSON as a numeric value, which is
wrong because BlockNumber.UnmarshalJSON() wants it to either be hex-encoded
or string "earliest"/"latest"/"pending". As a result, the call chain

    rpc.BlockNumberOrHashWithNumber(123) -> json.Marshal() -> json.Unmarshal()

fails with error "cannot unmarshal object into Go value of type string".
2021-08-25 19:30:29 +02:00
baptiste-b-pegasys
154b525ce8
cmd/devp2p/internal/ethtest: remove WriteTo method (#23379)
WriteTo is unused, and go vet warns about it because it
doesn't match the usual signature of the io.WriterTo method.
2021-08-25 19:06:42 +02:00
Felix Lange
32c576bd3c
rlp: minor optimizations for slice/array encoding (#23467)
As per benchmark results below, these changes speed up encoding/decoding of
consensus objects a bit.

    name                             old time/op    new time/op    delta
    EncodeRLP/legacy-header-8           384ns ± 1%     331ns ± 3%  -13.83%  (p=0.000 n=7+8)
    EncodeRLP/london-header-8           411ns ± 1%     359ns ± 2%  -12.53%  (p=0.000 n=8+8)
    EncodeRLP/receipt-for-storage-8     251ns ± 0%     239ns ± 0%   -4.97%  (p=0.000 n=8+8)
    EncodeRLP/receipt-full-8            319ns ± 0%     300ns ± 0%   -5.89%  (p=0.000 n=8+7)
    EncodeRLP/legacy-transaction-8      389ns ± 1%     387ns ± 1%     ~     (p=0.099 n=8+8)
    EncodeRLP/access-transaction-8      607ns ± 0%     581ns ± 0%   -4.26%  (p=0.000 n=8+8)
    EncodeRLP/1559-transaction-8        627ns ± 0%     606ns ± 1%   -3.44%  (p=0.000 n=8+8)
    DecodeRLP/legacy-header-8           831ns ± 1%     813ns ± 1%   -2.20%  (p=0.000 n=8+8)
    DecodeRLP/london-header-8           824ns ± 0%     804ns ± 1%   -2.44%  (p=0.000 n=8+7)

* rlp: pass length to byteArrayBytes

This makes it possible to inline byteArrayBytes. For arrays, the length is known
at encoder construction time, so the call to v.Len() can be avoided.

* rlp: avoid IsNil for pointer encoding

It's actually cheaper to use Elem first, because it performs less checks
on the value. If the pointer was nil, the result of Elem is 'invalid'.

* rlp: minor optimizations for slice/array encoding

For empty slices/arrays, we can avoid storing a list header entry in the
encoder buffer. Also avoid doing the tail check at encoding time because
it is already known at encoder construction time.
2021-08-25 19:01:10 +02:00
Felix Lange
8a134014b4
all: add go:build lines (#23468)
Generated by go1.17 fmt ./...
2021-08-25 18:46:29 +02:00
Guillaume Ballet
887902ea4d
crypto/cloudflare/bn256: fix in-place addition and unmarshalling (#23419) 2021-08-25 17:33:09 +02:00
Felix Lange
d16214228f
Dockerfile: upgrade to Go 1.17 (#23465) 2021-08-25 15:18:31 +02:00
Martin Holst Swende
3784e15106
tests: avoid performance tests during CI runs (#23304) 2021-08-25 15:07:58 +02:00
Martin Holst Swende
84c51bc5ec
cmd/evm: add difficulty calculation to t8n tool (#23353)
This PR adds functionality to the evm t8n to calculate ethash difficulty. If the caller does not provide a currentDifficulty, but instead provides the parentTimestamp (well, semi-optional, will default to 0 if not given), and parentDifficulty, we can calculate it for him.

The caller can also provide a parentUncleHash. In most, but not all cases, the parent uncle hash also affects the formula. If no such hash is provided (or, if the empty all-zero hash is provided), it's assumed that there were no uncles.
2021-08-25 15:04:26 +02:00
Felix Lange
efee85378e
build, .travis.yml: upgrade to Go 1.17 (#23464) 2021-08-25 14:22:33 +02:00