Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .codeclimate.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .dockerignore

This file was deleted.

3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ We would like all developers to follow a standard development flow and coding st
2. Review the code before submission.
3. Run standardized tests.

`Sonar`-scanner and CI checks (GitHub Actions) will be automatically triggered when a pull request has been submitted. When a PR passes all the checks, the **java-tron** maintainers will then review the PR and offer feedback and modifications when necessary. Once adopted, the PR will be closed and merged into the `develop` branch.
CI checks (GitHub Actions) will be automatically triggered when a pull request has been submitted. When a PR passes all the checks, the **java-tron** maintainers will then review the PR and offer feedback and modifications when necessary. Once adopted, the PR will be closed and merged into the `develop` branch.

We are glad to receive your pull requests and will try our best to review them as soon as we can. Any pull request is welcome, even if it is for a typo.

Expand All @@ -158,7 +158,6 @@ Please do not be discouraged if your pull request is not accepted, as it may be
Please make sure your submission meets the following code style:

- The code must conform to [Google Code Style](https://google.github.io/styleguide/javaguide.html).
- The code must have passed the Sonar scanner test.
- The code has to be pulled from the `develop` branch.
- The commit message should start with a verb, whose initial should not be capitalized.
- The commit message title should be between 10 and 72 characters in length.
Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- [Building the Source Code](#building-the-source-code)
- [Executables](#executables)
- [Running java-tron](#running-java-tron)
- [Documentation](#documentation)
- [Community](#community)
- [Contribution](#contribution)
- [Resources](#resources)
Expand Down Expand Up @@ -188,6 +189,23 @@ When exposing any of these APIs to a public interface, ensure the node is protec

Public hosted HTTP endpoints for both mainnet and testnet are provided by TronGrid. Please refer to the [TRON Network HTTP Endpoints](https://developers.tron.network/docs/connect-to-the-tron-network#tron-network-http-endpoints) for the latest list. For supported methods and request formats, see the HTTP API reference above.

# Documentation

More detailed guides live in the [`docs/`](./docs) directory:

- **Configuration**
- [Configuration Reference](./docs/configuration.md) — full `config.conf` option reference
- [Configuration Conventions](./docs/configuration-conventions.md)
- **Modular architecture & deployment**
- [Modular Introduction](./docs/modular-introduction-en.md) · [中文版](./docs/modular-introduction-zh.md)
- [Modular Deployment](./docs/modular-deployment-en.md) · [中文版](./docs/modular-deployment-zh.md)
- **Extending java-tron**
- [Implement a Customized Actuator](./docs/implement-a-customized-actuator-en.md) · [中文版](./docs/implement-a-customized-actuator-zh.md)
- **Protocol**
- [TRON Protobuf Protocol Document](./docs/protobuf-protocol-document.md) — the maintained, authoritative Protobuf protocol reference
- **Observability**
- [Metrics Changelog](./docs/metrics-changelog.md) — Prometheus metric additions, changes, and removals across java-tron releases

# Community

[TRON Developers & SRs](https://discord.gg/hqKvyAM) is TRON's official Discord channel. Feel free to join this channel if you have any questions.
Expand Down
4 changes: 4 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ localwitness = [
# localWitnessAccountAddress = "T..."
```

> **Security — protect the block-producing key.** A Super Representative's key can produce blocks and control the account's funds. Prefer the encrypted `localwitnesskeystore` over a plaintext `localwitness` key, and:
> - Restrict the key/keystore file so other users on the host cannot read it: `chmod 600 <key-or-keystore-file>`.
> - **Never commit a config file that contains a real private key to Git** — it stays in the history permanently. Add such files to `.gitignore` and keep the key file **outside** the repository directory.

### JSON-RPC (Ethereum-compatible, `node.jsonrpc`)

```hocon
Expand Down
2 changes: 1 addition & 1 deletion METRICS_CHANGELOG.md → docs/metrics-changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This file tracks Prometheus metric additions, changes, and removals in java-tron

**Pre-4.8.2 Baseline**

Snapshot of metrics emitted prior to this changelog. Per-version provenance is not tracked here; consult `git log` on [`common/src/main/java/org/tron/common/prometheus/`](common/src/main/java/org/tron/common/prometheus/) for exact origin of each metric.
Snapshot of metrics emitted prior to this changelog. Per-version provenance is not tracked here; consult `git log` on [`common/src/main/java/org/tron/common/prometheus/`](../common/src/main/java/org/tron/common/prometheus/) for exact origin of each metric.

### Existing Metrics

Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion framework/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
plugins {
id "org.gradle.test-retry" version "1.5.9"
id "org.sonarqube" version "2.6"
Comment thread
Sunny6889 marked this conversation as resolved.
id "com.gorylenko.gradle-git-properties" version "2.4.1"
}

Expand Down
31 changes: 0 additions & 31 deletions gradle/verification-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2567,37 +2567,6 @@
<sha256 value="bb388d37fbcdd3cde64c3cede21838693218dc451f04040c5df360a78ed7e812" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.sonarqube" name="org.sonarqube.gradle.plugin" version="2.6">
<artifact name="org.sonarqube.gradle.plugin-2.6.pom">
<sha256 value="df7f5a31a8fd8f0b5521242cdda42cad48970e39016e2c397b3d68bbb57c4197" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.sonarsource.parent" name="parent" version="40">
<artifact name="parent-40.pom">
<sha256 value="896728b6f49906d7516f182a170197963fe90dce88f14f50b585ac153427ffc2" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.sonarsource.scanner.api" name="sonar-scanner-api" version="2.9.0.887">
<artifact name="sonar-scanner-api-2.9.0.887.jar">
<sha256 value="12ba0b2d9fc5b5b896b3b16c96c3c46728094d83da5ea0a6289e21ac9c39f88a" origin="Generated by Gradle"/>
</artifact>
<artifact name="sonar-scanner-api-2.9.0.887.pom">
<sha256 value="d80d568bb60b53d5c748c0f07649608bbb3c0880939f911af6477bd0dc132915" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.sonarsource.scanner.api" name="sonar-scanner-api-parent" version="2.9.0.887">
<artifact name="sonar-scanner-api-parent-2.9.0.887.pom">
<sha256 value="803f182f822f359678cd1a108fc44cda785859d5555582cf3fe40574a3141943" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.sonarsource.scanner.gradle" name="sonarqube-gradle-plugin" version="2.6">
<artifact name="sonarqube-gradle-plugin-2.6.jar">
<sha256 value="3d3b67291ecedfcb84697aa7ee4e893fd5498190ec2d9c340dab7061b70317e3" origin="Generated by Gradle"/>
</artifact>
<artifact name="sonarqube-gradle-plugin-2.6.pom">
<sha256 value="7e733b80012fed1f7a830a80b56ff76cfd3ac9b1cd4cfa9e0833727663bf2f4f" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.sonatype.oss" name="oss-parent" version="7">
<artifact name="oss-parent-7.pom">
<sha256 value="b51f8867c92b6a722499557fc3a1fdea77bdf9ef574722fe90ce436a29559454" origin="Generated by Gradle"/>
Expand Down
4 changes: 0 additions & 4 deletions plugins/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
plugins {
id "org.sonarqube" version "2.6"
}

apply plugin: 'application'
apply plugin: 'checkstyle'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
> ⚠️ **本副本已过时(最后更新于 2022 年)。** 维护中的权威协议文档是 [`docs/protobuf-protocol-document.md`](../../../../docs/protobuf-protocol-document.md),请以该文件为准;此副本仅作历史参考保留。

# TRON protobuf protocol

## TRON使用Google protobuf协议,协议内容涉及到账户,区块,传输多个层面。
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

> ⚠️ **This copy is outdated (last updated 2022).** The maintained, authoritative protocol document is [`docs/protobuf-protocol-document.md`](../../../../docs/protobuf-protocol-document.md) — please refer to that file. This copy is kept only for historical reference.

# Protobuf protocol

## The protocol of TRON is defined by Google Protobuf and contains a range of layers, from account, block to transfer.
Expand Down
19 changes: 0 additions & 19 deletions sonar-project.properties

This file was deleted.

Loading