Moving the Lite Fullnode splitting function from the framework module directory to the plugins module directory.
Abstract
The generated tool allows users to generate leveldb database snapshot files based on java-tron. This function is an operation on the database files and does not affect the java-tron service itself.
The code of the tool class can be migrated to the plugins module.
Motivation
The Lite FullNode is a helper type of function. It should not be classified under the package of the framework module, but under the plugins module.
Archive the code to keep the framework module light and its responsibilities clear.
Rationale
Lite FullNode is a file-splitting tool that reads and writes a new .sst file for leveldb database files.
Lite FullNode splits the Lite Fullnode and must replicate the static database when the java-tron service is stopped.
This functionality is not a tool required for java-tron to run, nor is it code required for the service to run.
Implementation
Migrate all code under the package path: org/tron/tool/litefullnode in the framework module to plugins.
Migrate LiteFullNodeToolTest test cases to the test package in plugins.
Simple Summary
Moving the Lite Fullnode splitting function from the
framework
module directory to theplugins
module directory.Abstract
The generated tool allows users to generate leveldb database snapshot files based on java-tron. This function is an operation on the database files and does not affect the java-tron service itself.
The code of the tool class can be migrated to the
plugins
module.Motivation
The Lite FullNode is a helper type of function. It should not be classified under the package of the
framework
module, but under theplugins
module.Archive the code to keep the
framework
module light and its responsibilities clear.Rationale
Lite FullNode is a file-splitting tool that reads and writes a new .sst file for leveldb database files.
Lite FullNode splits the Lite Fullnode and must replicate the static database when the java-tron service is stopped.
This functionality is not a tool required for java-tron to run, nor is it code required for the service to run.
Implementation
org/tron/tool/litefullnode
in theframework
module toplugins
.LiteFullNodeToolTest
test cases to the test package inplugins
.