Skip to content

feat: improve node stability and execution efficiency - #7007

Merged
CodeNinjaEvan merged 3 commits into
tronprotocol:masterfrom
yanghang8612:feat/optimize-storage
Sep 30, 2026
Merged

CodeNinjaEvan merged 3 commits into
tronprotocol:masterfrom
yanghang8612:feat/optimize-storage

Conversation

@yanghang8612

Copy link
Copy Markdown
Collaborator

What does this PR do?

Land the 4.8.2.3 execution changes on master. The node version becomes 4.8.2.3, and the block version becomes 38.

Main Changes

  • Optimize smart contract storage access in edge cases.
  • Optimize BN128 pairing performance in edge cases.
  • Improve parsing of node-generated JSON responses.

Testing

  • Unit tests cover storage access, BN128 pairing, and outbound JSON.

@CodeNinjaEvan
CodeNinjaEvan merged commit f3e8140 into tronprotocol:master Sep 30, 2026
12 of 13 checks passed
Little-Peony added a commit to Little-Peony/java-tron that referenced this pull request Oct 9, 2026
* release_v4.8.3:
  refactor(framework): decouple Manager from TronJsonRpcImpl (tronprotocol#6990)
  refactor(api): replace response copy wrappers with Jetty content count (tronprotocol#6982)
  update a new version. version name:GreatVoyage-v4.8.2.2-1-gf3e81404fe,version code:18830 (tronprotocol#7008)
  feat: improve node stability and execution efficiency (tronprotocol#7007)
  chore(p2p): internalize libp2p v2.2.9 as a local `p2p` module (tronprotocol#6992)
  refactor(vm): remove unreachable trace compression path (tronprotocol#6997)
  fix(test): isolate cross-test state leaks and stabilize flaky suites (tronprotocol#6974)
  refactor(config): improve startup errors and remove inactive assertions (tronprotocol#6960)
  ci: optimize pull request checks (tronprotocol#6938)
  fix(config): remove inactive RocksDB options (tronprotocol#6944)

# Conflicts:
#	framework/src/main/java/org/tron/core/services/http/servlets/CreateShieldedTransactionWithoutSpendAuthSigServlet.java
Little-Peony added a commit to Little-Peony/java-tron that referenced this pull request Oct 12, 2026
* release_v4.8.3:
  feat(framework): remove --keystore-factory support from FullNode (tronprotocol#6978)
  refactor(proto): remove unused proto discover definition (tronprotocol#7014)
  fix(config): close resource streams (tronprotocol#7002)
  refactor(crypto): remove unused SM2 and SM3 (tronprotocol#6999)
  feat(plugins): backfill section bloom (tronprotocol#6973)
  refactor(api): remove dead WalletExtension gRPC service and config (tronprotocol#6975)
  refactor(framework): decouple Manager from TronJsonRpcImpl (tronprotocol#6990)
  refactor(api): replace response copy wrappers with Jetty content count (tronprotocol#6982)
  update a new version. version name:GreatVoyage-v4.8.2.2-1-gf3e81404fe,version code:18830 (tronprotocol#7008)
  feat: improve node stability and execution efficiency (tronprotocol#7007)
});
}

private void commitOptimized() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot about the ZERO values. It is possible to add a deletion in the "putNew()" method.

  private void putNew(DataWord key, byte[] value) {
    if (new DataWord(value).isZero()) {
      store.delete(getNewRowKey(key));
    } else {
      store.put(getNewRowKey(key), new StorageRowCapsule(value));
    }
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants