You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update outdated content across all six doc files
implement-a-customized-actuator (EN+ZH):
- Fix test lifecycle: @Before/@after → @BeforeClass/@afterclass so the
Spring context is created only once per test class, not per test method
- Fix Args initialization order: Args.setParam() must be called before
Args.getInstance() to avoid passing a stale unconfigured instance to
appTest.initServices()
- Replace hardcoded dbPath with @ClassRule TemporaryFolder to keep
test directories isolated and auto-cleaned
- Add @rule Timeout to guard against hangs
- Remove the specific protoc v3.4.0 version note; point readers to the
version declared in build.gradle instead
modular-deployment (EN+ZH):
- Replace CMS GC flags (-XX:+UseConcMarkSweepGC, -XX:+CMSParallelRemarkEnabled,
-XX:+CMSScavengeBeforeRemark) that were removed in JDK 14 and would
cause startup failures on JDK 17 (required for ARM64)
- Add -Xms/-Xmx to the example and note JDK 8/17 compatibility
modular-introduction (EN+ZH):
- Update module count from six to eight
- Add descriptions for the crypto and plugins modules
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/implement-a-customized-actuator-en.md
+27-25Lines changed: 27 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,13 +60,11 @@ service Wallet {
60
60
```
61
61
At last, recompile the modified proto files. Compiling the java-tron project directly will compile the proto files as well, `protoc` command is also supported.
62
62
63
-
*Currently, java-tron uses protoc v3.4.0. Please keep the same version when compiling by `protoc` command.*
64
-
65
63
```shell
66
-
# recommended
64
+
# recommended — also recompiles proto files automatically
67
65
./gradlew build -x test
68
66
69
-
# or build via protoc
67
+
# or build via protoc (ensure the protoc version matches the one declared in build.gradle)
A modularized java-tron consists of six modules: framework, protocol, common, chainbase, consensusand actuator. The function of each module is elaborated below.
19
+
A modularized java-tron consists of eight modules: framework, protocol, common, chainbase, consensus, actuator, crypto and plugins. The function of each module is elaborated below.
20
20
21
21
### framework
22
22
@@ -67,4 +67,11 @@ Actuator module defines the `Actuator` interface, which includes 4 different met
67
67
4. calcFee: define the logic of calculating transaction fees
68
68
69
69
Depending on their businesses, developers may set up Actuator accordingly and customize the processing of different types of transactions.
70
-
70
+
71
+
### crypto
72
+
73
+
Crypto module encapsulates cryptographic primitives used across the project, including elliptic curve key operations, hash functions and signature verification. It depends only on `common` and has no dependency on other business modules, keeping cryptographic logic isolated and auditable.
74
+
75
+
### plugins
76
+
77
+
Plugins module provides standalone operational tools packaged as independent executable JARs, such as `Toolkit.jar` and `ArchiveManifest.jar`. These tools support database maintenance tasks like migration, compaction and lite-node data pruning, and can be run without starting a full node.
0 commit comments