Commit Graph

111 Commits

Author SHA1 Message Date
730bea26d5 Patches for merge 2024-03-28 17:56:27 +08:00
4ad641831b Merge remote-tracking branch 'upstream/develop' into statediff 2024-03-28 17:07:00 +08:00
philip-morlier
2a41f9d36f Merge remote-tracking branch 'origin/feature/etc-plugin-miner' into feature/network-etc-miner 2024-02-28 14:39:02 -08:00
philip-morlier
3c9d3b52b0 Added IsShanghai to test, increased size of hookChan in test to occomodate. 2024-02-20 13:17:11 -08:00
philip-morlier
fd7b4068cd Updated comment in test plugin 2024-02-15 13:07:06 -08:00
philip-morlier
5065089c3d Merged Use the statedb database to get Tries PR into merge PR 2024-01-24 14:55:49 -08:00
philip-morlier
2e29160068 Merge remote-tracking branch 'origin/bugfix/trie-plugin-cleanup-dev' into merge/geth-v1.13.11 2024-01-24 14:39:09 -08:00
philip-morlier
8722e19c77 Type casting and function signature alterations needed to comply with plugeth-utils 2024-01-24 11:13:39 -08:00
philip-morlier
c7efabf8d6 Added InitializeNode converage to test plugin 2023-12-07 13:03:43 -08:00
Austin Roberts
bc14d12fd7 Use the statedb database to get Tries
The old approach of getting state tries involved instantiating a
new state database and using it to instantiate a trie. What we didn't
realize was that state database needed to have Close() called on it,
which we didn't offer a way for plugins to do, resulting in memory
leaking.

This approach reuses the primary trie database associated with the
blockchain object, albeit a bit indirectly. This will allow access
to recent tries that are stored in memory, where previously only
tries that had been committed to disk were accessible.
2023-12-06 16:10:17 -06:00
philip-morlier
892f98ad6a Added psudoCreateEngine function to test CreateEngine call 2023-12-04 09:46:30 -08:00
philip-morlier
1dd00d2452 Added PluginEIPCheck to test plugin 2023-10-23 18:41:19 -07:00
philip-morlier
ace421d033 Added Is1559() to test plugin 2023-10-23 18:13:27 -07:00
philip-morlier
771c2e7cc3 Added OpCodeSelect() to test plugin 2023-10-23 17:40:33 -07:00
philip-morlier
39b5250f63 ForkIDs() added to test plugin 2023-10-23 17:25:52 -07:00
philip-morlier
052b705632 Added addBalance to wrapped state db 2023-10-10 14:32:52 -07:00
Austin Roberts
6781ee2a5c Misc. Fixes from code review 2023-10-02 14:45:41 -05:00
Austin Roberts
07e9739871 Add genesis block from plugins 2023-10-02 13:38:13 -05:00
Austin Roberts
f7ad35eae9 Add genesis block hook 2023-10-02 13:20:54 -05:00
philip-morlier
38ea6101de Config plugin hooks and injections with test coverage.
All config hooks have been written with the exception of writing the genesis.
2023-09-28 21:19:54 -07:00
philip-morlier
31ada7d3e3 Merge remote-tracking branch 'origin/develop' into feature/etc-plugin 2023-09-28 12:45:24 -07:00
philip-morlier
5be3014e0b Added first etc hook into test plugin 2023-09-28 12:34:38 -07:00
philip-morlier
9d34721d46 Modified test plugin to enable faster execution.
This required adding a dummy injection into core/blockchain.go
2023-09-28 09:30:31 -07:00
philip-morlier
4641b6e012 Test plugin passing 2023-09-14 16:42:26 -07:00
philip-morlier
51c041850b Manual touches to plugeth code to accommodate geth v1.13.0 2023-09-13 12:57:48 -07:00
AusIV
3993f2f870
Merge pull request #87 from openrelayxyz/bugifx/engine-wrapper-dummyseals
Fixed a patch in the engine wrapper.
2023-09-11 13:39:55 -05:00
philip-morlier
5912cf69a9 Laconic comments removed 2023-09-10 14:04:10 -07:00
philip-morlier
8d626683a5 Comments added to laconic work. 2023-09-10 14:03:34 -07:00
philip-morlier
bb33c798de Fixed a patch in the engine wrapper.
In order to keep our utils interfaces as generic as possible across chains I added a "dummySeals" []bool to the engine wrapper. Up until now the slice was
a fixed size. From this point it has the same length as the []*headers argument also passed into the same function.
2023-09-10 13:29:51 -07:00
philip-morlier
f5f285379a Implementation of test function for laconic's GetCpontractCode method. 2023-09-08 13:14:58 -07:00
philip-morlier
3ca53046eb Merge remote-tracking branch 'laconic/add-plugindir-flag' into laconic-merge 2023-09-07 18:21:23 -07:00
philip-morlier
8409cfd6b4 Merge remote-tracking branch 'laconic/access-contractcode' into laconic-merge 2023-09-07 18:21:13 -07:00
265f7a5aa7 Add --pluginsdir flag. (#1)
Add a new flag, `--pluginsdir`, for setting the directory where plugins are stored.  The default remains `$datadir/plugins`.

Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Reviewed-on: cerc-io/plugeth#1
2023-08-04 23:03:08 +08:00
3cd59d52c5 Backend: add GetContractCode 2023-08-04 23:03:07 +08:00
philip-morlier
7a99cf6bf0 updated engine in test plugin 2023-07-31 13:04:19 -07:00
philip-morlier
bb43b2cbc4 Changes made to support unity across all plugeth projects with resepct to consensus engine. 2023-07-31 12:43:06 -07:00
bf0041eebe Backend: add GetContractCode 2023-07-19 14:02:16 +08:00
1d8f2a28e8 Add --pluginsdir flag. (#1)
Add a new flag, `--pluginsdir`, for setting the directory where plugins are stored.  The default remains `$datadir/plugins`.

Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Reviewed-on: cerc-io/plugeth#1
2023-07-19 14:01:46 +08:00
philip-morlier
24f8b776c9 deleted duplicate test plugin package 2023-07-13 14:09:43 -07:00
philip-morlier
ba7a166608 deleted unneeded password file 2023-07-13 13:20:01 -07:00
philip-morlier
e9630a85f4 This is a functional build a dev tagged release of foundation plugeth
This brings the project up to geth v1.12.0

The plugeth test plugin has been added but is failing on the live tracer hooks as of this commit
2023-07-13 13:10:19 -07:00
philip-morlier
5822e2e15f remooved geth binary 2023-07-12 18:18:43 -07:00
philip-morlier
0747e800de Added plugin test package to plugins package 2023-07-12 18:17:18 -07:00
philip-morlier
6ed9390f9b Merge remote-tracking branch 'origin/feature/plugeth-test-plugin' into merge/geth-v1.12.0 2023-07-12 13:47:51 -07:00
philip-morlier
dc56f2a361 incremental commit, manual changes to support merge 2023-07-11 17:01:10 -07:00
philip-morlier
b19d7f9f9e Merge remote-tracking branch 'origin/develop' into feature/old-consensus-engine 2023-06-14 22:24:35 -07:00
Philip Morlier
366f480bc1
Merge pull request #78 from cerc-io/fix-subscription-methods
Fix subscription method registration
2023-06-14 09:44:27 -07:00
philip-morlier
1bf1a5634e Merge remote-tracking branch 'origin/develop' into feature/old-consensus-engine 2023-06-13 22:52:01 -07:00
philip-morlier
80956ac723 removed unnecessary comments from wrappers/engine.go 2023-06-12 15:08:37 -07:00
philip-morlier
7434ccb8c8 Initial commit of stand alone consensus engine work. 2023-06-12 09:52:46 -07:00