Austin Roberts
a03c9e1324
Merge remote-tracking branch 'plugeth/develop' into utils-refactor
2021-09-17 11:27:47 -05:00
Austin Roberts
e6f05fcca9
Use restricted params, not geth params
2021-09-16 16:06:46 -05:00
Austin Roberts
f7307d527d
Updates to support blockupdates plugin
...
This makes several updates to support the blockupdates plugin.
I had to update several hooks that were using the wrong types, and
provide a way to get event.Feed objects into plugins without importing
event.Feed (which I did by having the plugin loader make them
available).
2021-09-16 16:04:36 -05:00
philip-morlier
25af69b8e2
Missing rpc call hook and test
2021-09-16 14:03:50 -07:00
philip-morlier
7d7fad0988
Further updates to wrappers.go and rpc/handler.go, chaising bugs
2021-09-16 11:55:39 -07:00
philip-morlier
86fd4f27e2
updated eth/tracers/plugin_hooks.go to reflect attempts to address Wednesday 9/15/21 problems with tracer plugin
2021-09-15 16:13:38 -07:00
philip-morlier
ea0f27c92d
Merge remote-tracking branch 'refs/remotes/origin/utils-refactor' into utils-refactor
2021-09-15 13:13:32 -07:00
philip-morlier
1b4eded9c5
Updeated wrappers.go and go.mod
2021-09-15 13:09:43 -07:00
Austin Roberts
b8928b1e57
Add code comments, remove debug logging
2021-09-15 08:54:04 -05:00
Austin Roberts
1ed3de57d4
Support subscriptions in plugins
...
This does some dark magic with reflect to enable plugins to offer
subscriptions without requiring them to use the rpc.Subscriptions
import.
Basically, plugin services can have a channel as a return value,
and the shim will pull items off of that chanel and send them to
the notifier. It makes sure that context.Done() will fire when
the user disconnects, and will shut everything down if the channel
closes.
2021-09-14 17:44:49 -05:00
Austin Roberts
7b33b6e821
Add chainconfig to backend
2021-09-14 17:44:25 -05:00
philip-morlier
411a43e378
updated cmd/geth/plugin_hooks.go and plugins/plugin_loader.go to reflect changes re core.logger, updated go.mod and go.sum to address dependency issues
2021-09-09 12:51:13 -07:00
philip-morlier
b36e63f184
eth/tracers/plugin_hooks, tracers/plugin_hooks, and wrappers utils refactor modifications
2021-09-08 14:38:17 -07:00
philip-morlier
c36c999383
utils refactor work from the week
2021-09-03 15:20:49 -07:00
Austin Roberts
0d5af1c7dc
Add Len() to Stack
2021-09-02 16:26:40 -05:00
philip-morlier
f615e3813d
Modified hooks for plugeth-utils functionality
2021-09-01 13:34:03 -07:00
Austin Roberts
8291edc416
A couple of translation examples plus todos for Philip
2021-08-31 15:51:41 -05:00
Austin Roberts
820a0af71c
Pass plugin loader by interface
2021-08-31 15:41:27 -05:00
Austin Roberts
d9d51dd345
update plugeth-utils version
2021-08-31 15:29:09 -05:00
Austin Roberts
40377543bf
Add plugin hook tester
2021-08-25 14:00:27 -05:00
Sam Johnston
6f375ae627
Correct naming to be accurate
2021-08-25 13:39:50 -05:00
Sam Johnston
c3328b6042
Correct naming typo
2021-08-25 13:33:50 -05:00
Sam Johnston
41851f5ba5
Adding circleci configuration file skeleton
2021-08-25 13:32:30 -05:00
Austin Roberts
d2df0b4c5f
Stack cleanup for subcommands
2021-08-17 16:11:59 -05:00
Austin Roberts
5f0574bbc4
Run stack commands after plugin initialization
2021-08-12 14:42:14 -05:00
Austin Roberts
2e7254e737
Update documentation
2021-07-20 10:18:29 -05:00
Austin Roberts
c58a596a53
Documentation!
2021-07-14 15:45:36 -05:00
Austin Roberts
7ed35c32bd
Readme updates
2021-07-14 15:21:24 -05:00
Austin Roberts
5b7da7301f
Update readme
2021-07-14 13:50:17 -05:00
Austin Roberts
328756dc00
Fix initialize function of plugin loader, update blockupdates plugin
2021-07-14 13:06:10 -05:00
Austin Roberts
16cc5314cf
Merge tag 'v1.10.5' into plugeth
2021-07-14 08:46:10 -05:00
Austin Roberts
75ad936fbb
Hooks for appending ancients, initial work on block update plugin
2021-07-14 08:33:17 -05:00
Péter Szilágyi
33ca98ece9
params: release Geth v1.10.5, Exodus Cluster
2021-07-14 11:01:38 +03:00
gary rong
1fac96c1f9
internal/web3ext: remove unused console APIs ( #23208 )
2021-07-14 10:57:07 +03:00
Marius van der Wijden
b9e6e43722
consensus/clique: implement getSigner API method ( #22987 )
...
* clique: implement getSignerForBlock
* consensus/clique: use blockNrOrHash in getSignerForBlock
* consensus/clique: implement getSigner
* consensus/clique: fixed rlp decoding
* consensus/clique: use Author instead of getSigner
* consensus/clique: nit nit nit
* consensus/clique: nit nit nit
2021-07-13 14:40:22 +03:00
Mark
c49e065fea
internal: get pending and queued transaction by address ( #22992 )
...
* core, eth, internal, les, light: get pending and queued transaction by address
* core: tiny nitpick fixes
* light: tiny nitpick
Co-authored-by: mark <mark@amis.com>
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2021-07-13 13:40:58 +03:00
gary rong
846badc480
internal/ethapi: fix transaction APIs ( #23179 )
...
* internal/ethapi: fix transaction APIs
* internal/ethapi: fix typo
* internal/ethapi: address comments
* internal/ethapi: address comment from Peter
2021-07-13 13:40:01 +03:00
Austin Roberts
7a8bb87257
Add reorg hooks, fix hook name lookup
2021-07-12 15:46:50 -05:00
Austin Roberts
c45774b74b
Give plugins a handle to their plugin loader
...
This potentially allows plugins to invoke other plugins.
2021-07-12 14:55:45 -05:00
Austin Roberts
6e4c285ed1
Add state update hooks
2021-07-12 14:45:42 -05:00
Marius van der Wijden
8fe47b0a0d
core/state: avoid unnecessary alloc in trie prefetcher ( #23198 )
2021-07-12 21:34:20 +02:00
Austin Roberts
875e506148
Invoke plugins when blocks are added as new heads or sidechain blocks
2021-07-12 11:40:13 -05:00
Péter Szilágyi
58b0420a8a
Merge pull request #23183 from karalabe/cht-1.10.5
...
params: update CHTs for the 1.10.5 release
2021-07-12 11:25:08 +03:00
Péter Szilágyi
afd4227df8
params: update CHTs for the 1.10.5 release
2021-07-09 14:27:41 +03:00
Péter Szilágyi
9624f92ede
Merge pull request #23178 from karalabe/feeapi-fixes
...
eth/gasprice, internal/ethapi, miner: minor feehistory fixes
2021-07-09 07:47:23 +03:00
Péter Szilágyi
dea71556cc
eth/gasprice, internal/ethapi, miner: minor feehistory fixes
2021-07-08 21:50:35 +03:00
Martin Holst Swende
ff4ff30a68
core, params: define london block at 12965000 ( #23176 )
...
* core, params: define london block at 12965000
* core/forkid: fix test
2021-07-08 12:34:56 +03:00
ucwong
00b922fc5d
core/types: go generate ( #23177 )
2021-07-08 07:53:28 +02:00
Sina Mahmoodi
7522642393
core/types: remove LogForStorage type ( #23173 )
...
The encoding of Log and LogForStorage is exactly the same
now. After tracking it down it seems like #17106 changed the
storage schema of logs to be the same as the consensus
encoding.
Support for the legacy format was dropped in #22852 and if
I'm not wrong there's no reason anymore to have these two
equivalent types.
Since the RLP encoding simply contains the first three fields
of Log, we can also avoid creating a temporary struct for
encoding/decoding, and use the rlp:"-" tag in Log instead.
Note: this is an API change in core/types. We decided it's OK
to make this change because LogForStorage is an implementation
detail of go-ethereum and the type has zero uses outside of
package core/types.
Co-authored-by: Felix Lange <fjl@twurst.com>
2021-07-07 19:52:55 +02:00
Martin Holst Swende
b9d4412715
cmd/devp2p: fixes for eth and discv4 tests ( #23155 )
...
This PR fixes a false positive PONG 'to' endpoint mismatch seen in hive tests:
got {IP:172.17.0.7 UDP:44025 TCP:44025}, want {IP:172.17.0.7 UDP:44025 TCP:0}
Co-authored-by: Felix Lange <fjl@twurst.com>
2021-07-07 17:28:14 +02:00