Skip to content

[pull] develop from tronprotocol:develop #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 613 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
613 commits
Select commit Hold shift + click to select a range
8d496f8
prefer to disconnect from broadcast nodes when isOpenFullTcpDisconnec…
317787106 Sep 2, 2024
f99d216
adjust ResilienceServiceTest
317787106 Sep 3, 2024
e242ae1
add testcase PeerStatusCheckTest
317787106 Sep 3, 2024
6c3a526
use WeightedRandom to choose broadcast peer
317787106 Sep 4, 2024
59e92c8
don't disconnect from high peer if its number <=1
317787106 Sep 4, 2024
1996f7b
Merge pull request #5984 from 317787106/feature/test_isolated3
lvs007 Sep 5, 2024
7bdf75e
Merge remote-tracking branch 'origin/release_v4.7.6' into release_v4.7.6
jwrct Sep 5, 2024
6c73ede
feat(net): delete useless test code
jwrct Sep 12, 2024
cdbbb0a
Merge pull request #5999 from fyyhtx/release_v4.7.6
lvs007 Sep 12, 2024
bd7b3d1
feat(jsonrpc): ethGetBlockByNumber supports finalized
waynercheung Sep 18, 2024
f9a86f7
feat(test): improve unit test coverage
lxcmyf Aug 28, 2024
ddccce4
print trx size from pending and repush after generating block
317787106 Sep 27, 2024
450763b
add some test case
317787106 Sep 27, 2024
9b58a57
Merge pull request #6017 from 317787106/feature/print_sr_queue_size
lvs007 Sep 27, 2024
98a37b1
feat(dependencies): update dependencies for protobuf-java
halibobo1205 Sep 22, 2024
0f39d7a
Merge pull request #6025 from halibobo1205/feat/update_libp2p
lvs007 Oct 4, 2024
4103dfe
Merge pull request #6010 from tronprotocol/release_v4.7.6
lvs007 Oct 4, 2024
8947617
update a new version. version name:GreatVoyage-v4.7.5-64-g4103dfeb63,…
halibobo1205 Oct 4, 2024
4d0ad61
Merge pull request #6026 from halibobo1205/version/GreatVoyage-v4.7.5…
lvs007 Oct 4, 2024
310c533
Merge remote-tracking branch 'upstream/master' into master_merge_to_d…
halibobo1205 Oct 8, 2024
db74739
Merge pull request #6031 from halibobo1205/master_merge_to_develop
lvs007 Oct 8, 2024
f7ecfc3
Merge pull request #5988 from lxcmyf/feature/improve_coverage
lvs007 Oct 9, 2024
c136a26
docs: fix spelling and formatting errors (#5981)
omahs Oct 9, 2024
59d7d95
Docs fix spelling issues (#6044)
nnsW3 Oct 25, 2024
c81c2fc
Docs: (README) (#6036)
operagxsasha Oct 25, 2024
333d25c
feat(test): improve tests coverage (#6034)
CarlChaoCarl Oct 25, 2024
9d168e8
doc(README): update free space required (#6064)
halibobo1205 Nov 1, 2024
3bbc91d
feat(event): optimize event subscribe exception handling
tomatoishealthy May 21, 2024
2333531
fix(backup/backupServer): make the thread pool close after the netty …
halibobo1205 Mar 20, 2024
4e65c21
feat(jsonrpc): make other jsonrpc apis process finalized parameter
waynercheung Nov 13, 2024
a8ea721
initial commit
317787106 Nov 13, 2024
a31763e
revise if sensitiveCache is empty
317787106 Nov 13, 2024
a154dcb
ignore / of address
317787106 Nov 13, 2024
7bd057d
replace unknown ip with string IP
317787106 Nov 14, 2024
fe065da
update jacoco version
chaosuper123321 Nov 14, 2024
3da676e
fix the bug of eth_getLogs
317787106 Nov 15, 2024
86ab5ad
checkout payment in checkShieldedTRC20NoteValue
317787106 Nov 15, 2024
4717f87
add test case testCreateShieldedContractParameters2 without payment_a…
317787106 Nov 19, 2024
e15ecce
Revert "feat(test): improve tests coverage (#6034)"
CarlChaoCarl Nov 20, 2024
055ef97
Merge pull request #6083 from CarlChaoCarl/revert-6034-feature/optimi…
CodeNinjaEvan Nov 22, 2024
4f143db
Merge branch 'develop' of https://github.com/CarlChaoCarl/java-tron i…
chaosuper123321 Nov 22, 2024
555a839
feat(version): update version to 4.7.7
yanghang8612 Nov 28, 2024
39d99ee
feat(metric): add prometheus interceptor
halibobo1205 Jun 6, 2024
160a440
Merge pull request #6099 from yanghang8612/version/update_version
CodeNinjaEvan Nov 28, 2024
8428480
Merge pull request #6095 from halibobo1205/477/backup_thead_pool_clos…
CodeNinjaEvan Nov 28, 2024
ef08c67
Merge pull request #6096 from halibobo1205/477/optimize-event-exception
CodeNinjaEvan Nov 28, 2024
3278ced
feat(math): migrate `pow` operation from java.lang.Math to java.lang.…
halibobo1205 Oct 21, 2024
4a28e3d
Merge pull request #6097 from halibobo1205/477/metric_http_grpc
CodeNinjaEvan Nov 28, 2024
e82620f
Merge pull request #6098 from halibobo1205/477/Math_to_strictMath_for…
CodeNinjaEvan Nov 28, 2024
eafada1
opt(vm): optimize contract (#6101)
yanghang8612 Nov 28, 2024
f4da4fa
Merge pull request #6103 from tronprotocol/release_v4.7.7
CodeNinjaEvan Nov 29, 2024
16026e9
update a new version. version name:GreatVoyage-v4.7.6-12-gf4da4fafb1,…
yanghang8612 Nov 29, 2024
e811def
Merge pull request #6104 from yanghang8612/version/GreatVoyage-v4.7.6…
CodeNinjaEvan Nov 29, 2024
f16c3f8
Merge pull request #6106 from tronprotocol/master
CodeNinjaEvan Nov 29, 2024
a365ee4
Merge branch 'develop' of https://github.com/CarlChaoCarl/java-tron i…
chaosuper123321 Dec 3, 2024
7047201
upgrade mockito and optimize tests coverage
chaosuper123321 Dec 9, 2024
5c53c3b
chore: fix some typos in comment
InventiveCoder Dec 10, 2024
e08511b
fix check style error
chaosuper123321 Dec 12, 2024
b70078c
feat(net): reduce the interval between batch request blocks to 100ms
jwrct Dec 24, 2024
c36118f
fix(net): add check for the number of contracts in the transaction
jwrct Dec 24, 2024
42e79c2
jacoco.toolVersion optimize
chaosuper123321 Dec 26, 2024
7f0b184
impr(test): revert changes and optimize those tests in a safer way
yanghang8612 Jan 7, 2025
659db96
move DesensitizedConverter to package common
317787106 Jan 8, 2025
021a5c1
feat(consensus): add consensus logic optimization proposal
zeusoo001 Jul 18, 2024
6a32bb1
typo
waynercheung Jan 9, 2025
81a04e5
remove assertTrue(true)
chaosuper123321 Jan 10, 2025
92ae447
Merge pull request #6117 from CarlChaoCarl/feature/upgrade_mockito_an…
CodeNinjaEvan Jan 13, 2025
eb8e59a
feat(jsonrpc): add test cases for jsonrpc finalized
waynercheung Jan 13, 2025
a0e3dfa
Merge branch 'feat/jsonrpc_finalized' into feat/ethGetBlockByNumber_f…
waynercheung Jan 13, 2025
afd9540
Merge branch 'develop' into feat/ethGetBlockByNumber_finalized
waynercheung Jan 14, 2025
46826a7
feat(consensus): modify the review comments
zeusoo001 Jan 14, 2025
b4dea0d
Merge branch 'develop' of github.com:tronprotocol/java-tron into cons…
zeusoo001 Jan 15, 2025
1f0aa38
Merge pull request #6141 from zeusoo001/consensus_logic_opt
CodeNinjaEvan Jan 20, 2025
4e4881f
feat(witness): sort witness from address hashcode to address
halibobo1205 Jan 22, 2025
c3686aa
feat(*): optimize sensitive information
lxcmyf Jan 1, 2025
0642903
feat(exception): add TronError
halibobo1205 Jan 8, 2025
b57411f
feat(transaction): optimize transactions during the consensus phase
lxcmyf Feb 6, 2025
2c4b8d8
Merge branch 'release_v4.8.0' into hotfix/verify_payment
317787106 Feb 13, 2025
a84ae97
Merge branch 'release_v4.8.0' into feature/sensitive_ip
317787106 Feb 13, 2025
1f434d3
Merge branch 'release_v4.8.0' into hotfix/eth_getLogs
317787106 Feb 13, 2025
409c420
Merge pull request #6170 from halibobo1205/feat/add_tron_error
CodeNinjaEvan Feb 13, 2025
5619441
feat(api): optimize api service startup
halibobo1205 May 13, 2024
b1ac699
Merge pull request #6173 from halibobo1205/feat/sr_sort_opt
CodeNinjaEvan Feb 13, 2025
31016d3
Merge pull request #5857 from halibobo1205/feat/api_service_init_opt
CodeNinjaEvan Feb 13, 2025
a86d0ed
feat(*): reactor system.exit
halibobo1205 Jan 3, 2025
941959a
Merge branch 'develop' of github.com:tronprotocol/java-tron into disc…
zeusoo001 Feb 14, 2025
b5a53af
feat(tvm): cancun opcodes TLOAD, TSORE, MCOPY
Jun 26, 2024
1365aff
Merge remote-tracking branch 'upstream/release_v4.8.0' into fix_trans…
jwrct Feb 14, 2025
2d2195c
fix(test): update test case
jwrct Feb 14, 2025
794c098
Merge remote-tracking branch 'upstream/release_v4.8.0' into sync_update
jwrct Feb 14, 2025
60364ab
feat(tvm): update comments and tests
Jun 27, 2024
2d2200c
feat(consensus): check block header time is an integer multiple of 3s
zeusoo001 Feb 14, 2025
584e93a
Merge branch 'release_v4.8.0' of github.com:tronprotocol/java-tron in…
zeusoo001 Feb 14, 2025
e90c321
feat(consensus): verify the slot to avoid block generation during mai…
zeusoo001 Feb 14, 2025
bdea53f
feat(net): change the MAX_PEER_COUNT_PER_ADDRESS value to 5
zeusoo001 Feb 14, 2025
9c03624
Merge remote-tracking branch 'upstream/release_v4.8.0' into feature/c…
lxcmyf Feb 14, 2025
8738da4
Merge remote-tracking branch 'upstream/release_v4.8.0' into feature/s…
lxcmyf Feb 14, 2025
00d994b
test(vm): enable saving details for cancelcallunfreeze opcode test
yanghang8612 Feb 14, 2025
878dffc
fix(test): update test case
jwrct Feb 14, 2025
0640dd6
feat(event): optimize the event service
zeusoo001 Feb 5, 2025
fb2f371
Merge branch 'release_v4.8.0' of github.com:tronprotocol/java-tron in…
zeusoo001 Feb 14, 2025
fadc1a4
Merge pull request #6186 from zeusoo001/block-time-check
CodeNinjaEvan Feb 14, 2025
791ee6c
Merge pull request #6184 from zeusoo001/discard-inv-below-solid-block-1
CodeNinjaEvan Feb 14, 2025
bbc51c6
Merge branch 'release_v4.8.0' of github.com:tronprotocol/java-tron in…
zeusoo001 Feb 14, 2025
9f42782
Merge pull request #6177 from halibobo1205/feat/exit_opt
CodeNinjaEvan Feb 14, 2025
c155f13
feat(consensus): resolve code conflicts
zeusoo001 Feb 14, 2025
f7a3711
bump jcommander from 1.72 to 1.78
halibobo1205 Feb 13, 2025
7149763
bump pf4j from 2.5.0 to 3.10.0
halibobo1205 Feb 13, 2025
f9f592e
bump grpc from 1.52.1 to 1.60.0
halibobo1205 Feb 13, 2025
f500778
bump libp2p from 2.2.4 to 2.2.5
halibobo1205 Feb 13, 2025
6de76fb
Merge pull request #6185 from raymondliu0711/feature/vm_cancun_opcodes
CodeNinjaEvan Feb 14, 2025
e3ab041
Merge pull request #6181 from fyyhtx/fix_transaction_handle
CodeNinjaEvan Feb 14, 2025
9485e85
add test case ApiUtilTest
317787106 Feb 14, 2025
ef01fa3
Merge branch 'release_v4.8.0' into feature/sensitive_ip
317787106 Feb 14, 2025
ed2a721
Merge branch 'release_v4.8.0' into hotfix/verify_payment
317787106 Feb 14, 2025
61eb746
feat(math): migrate all operations from java.lang.Math to java.lang.S…
halibobo1205 Feb 8, 2025
25b1a69
Merge pull request #6007 from waynercheung/feat/ethGetBlockByNumber_f…
CodeNinjaEvan Feb 14, 2025
b84c4f6
add test case of empty Payment Address in SpendNote
317787106 Feb 14, 2025
e30abd6
Merge branch 'release_v4.8.0' into hotfix/eth_getLogs
317787106 Feb 14, 2025
b9a4912
add test case of generateFilterId
317787106 Feb 14, 2025
17283bf
Merge pull request #6183 from fyyhtx/sync_update
CodeNinjaEvan Feb 14, 2025
e72dbc4
format style of ApiUtilTest
317787106 Feb 14, 2025
54cff73
Merge pull request #6188 from zeusoo001/modify-default-value
CodeNinjaEvan Feb 14, 2025
3886068
Merge pull request #6187 from zeusoo001/witness-slot-verify
CodeNinjaEvan Feb 14, 2025
55cd17f
Merge pull request #6182 from halibobo1205/480/Math_full_to_strictMath
CodeNinjaEvan Feb 15, 2025
6b0aed7
Merge pull request #6176 from 317787106/hotfix/eth_getLogs
CodeNinjaEvan Feb 15, 2025
f402360
Merge pull request #6171 from lxcmyf/feature/sensitive_information_op…
CodeNinjaEvan Feb 15, 2025
a6b2142
modify test case of isShieldedTRC20ContractNoteSpent
317787106 Feb 15, 2025
9a44b0b
Merge branch 'release_v4.8.0' into feat/optimize_tests_and_logs
yanghang8612 Feb 15, 2025
a3109e5
Merge branch 'release_v4.8.0' into feature/support_cancel_details
yanghang8612 Feb 15, 2025
3c856c8
Merge pull request #6180 from halibobo1205/feature/dependency_upgrade
CodeNinjaEvan Feb 15, 2025
0c27569
Merge pull request #6175 from 317787106/feature/sensitive_ip
CodeNinjaEvan Feb 15, 2025
2ce580d
Merge pull request #6172 from lxcmyf/feature/consensus_optimize_tx
CodeNinjaEvan Feb 15, 2025
068eb3a
Merge pull request #6190 from yanghang8612/feat/optimize_tests_and_logs
CodeNinjaEvan Feb 15, 2025
3938504
Merge pull request #6174 from 317787106/hotfix/verify_payment
CodeNinjaEvan Feb 15, 2025
6660adb
Merge pull request #6191 from yanghang8612/feature/support_cancel_det…
CodeNinjaEvan Feb 15, 2025
70a7979
Merge branch 'release_v4.8.0' of github.com:tronprotocol/java-tron in…
zeusoo001 Feb 17, 2025
ff44e09
solve the sonar problem
zeusoo001 Feb 17, 2025
8249971
feat(build): enable dependency checksum sha256 verification
halibobo1205 Jul 8, 2024
e12adb2
Merge pull request #5903 from halibobo1205/feat/dependency_verification
CodeNinjaEvan Feb 17, 2025
a464aa8
feat(tvm): compare dataword in mcopy energy cost
Feb 17, 2025
d4f44a7
Merge pull request #6194 from raymondliu0711/feature/compare_dataword
CodeNinjaEvan Feb 17, 2025
01dd7e1
fix(tvm): clone tload value
Feb 17, 2025
a82baeb
Merge pull request #6195 from raymondliu0711/feature/clone_tload_value
CodeNinjaEvan Feb 17, 2025
d70cb52
Merge pull request #6192 from zeusoo001/event-22
CodeNinjaEvan Feb 17, 2025
973a0af
opt(framework): optimization Help Instruction
imalasong Feb 18, 2025
41f751f
feat(net): optimize handshake log information
zeusoo001 Feb 18, 2025
4a20239
Merge pull request #6198 from zeusoo001/log_optimize
CodeNinjaEvan Feb 19, 2025
5f39d97
don't use prefix 41 when add address to sensitiveCache map
317787106 Feb 19, 2025
964daeb
fix(cfg): the setParam method overrides the internal tx switches init…
yanghang8612 Feb 19, 2025
f1a01e1
Merge pull request #6203 from 317787106/hotfix/remove_head41
CodeNinjaEvan Feb 20, 2025
1168426
Merge pull request #6201 from yanghang8612/fix/internal_tx_switch_cov…
CodeNinjaEvan Feb 20, 2025
ca28553
feat(system.exit): adapt TronError for ExecutorService
halibobo1205 Feb 20, 2025
89b53e6
Merge pull request #6205 from halibobo1205/480/adapt-TronError-for-th…
CodeNinjaEvan Feb 21, 2025
6a4f7a0
feat(log): optimize event service logs
zeusoo001 Feb 21, 2025
128b5d3
feat(dependencies): bump logback from 1.2.9 to 1.2.13
halibobo1205 Feb 21, 2025
e5af636
Merge pull request #6206 from zeusoo001/log_optimize
CodeNinjaEvan Feb 24, 2025
698f895
reactor(actuator):rename allowStrictMath2 to disableJavaLangMath
halibobo1205 Feb 24, 2025
8769536
feat(config): modify fastForward configuration
zeusoo001 Feb 24, 2025
5460d12
clear ch.qos.logback:1.2.9
halibobo1205 Feb 24, 2025
8791a2c
Merge pull request #6210 from halibobo1205/feat/rename_use_strictMath2
CodeNinjaEvan Feb 24, 2025
fbaa09b
feat(workflows): upgrade CodeQL Action to v3
halibobo1205 Feb 24, 2025
ff69ffb
Merge pull request #6207 from halibobo1205/feat/update_logback
CodeNinjaEvan Feb 24, 2025
04b7275
Merge pull request #6211 from zeusoo001/modify-config
CodeNinjaEvan Feb 24, 2025
5158b2f
Merge pull request #6212 from halibobo1205/feat/update-CodeQL-Action-v3
CodeNinjaEvan Feb 24, 2025
f187e10
fix(tvm): revert tstore in staticcall
Feb 25, 2025
adab9dd
feat(start): adjust consensusService start before tronNetService
halibobo1205 Feb 26, 2025
7a15f50
Merge pull request #6216 from halibobo1205/feat/start_opt
CodeNinjaEvan Feb 26, 2025
34393f6
feat(test): optimize unit testing configuration
lxcmyf Feb 26, 2025
af3a002
feat(validate): strengthen transaction result verification
lxcmyf Feb 27, 2025
93dfc33
Merge pull request #6221 from lxcmyf/feature/consensus_optimize_tx
CodeNinjaEvan Feb 27, 2025
f9a4544
Merge pull request #6219 from lxcmyf/feature/sensitive_information_op…
CodeNinjaEvan Feb 27, 2025
f653cfd
feat(event): optimize event service log
zeusoo001 Mar 3, 2025
ae24ba8
fix BlockEventCacheTest unit test issue
zeusoo001 Mar 4, 2025
a75e41d
add SolidEventServiceTest unit test
zeusoo001 Mar 4, 2025
7a5ae39
func(cfg): parameters should have a higher priority on the command li…
yanghang8612 Mar 4, 2025
9a70395
Merge pull request #6223 from zeusoo001/log-opt-1
CodeNinjaEvan Mar 4, 2025
658a4e2
feat(event): optimize transaction trigger acquisition
zeusoo001 Mar 4, 2025
67c4a09
feat(service): exit when services init failed
halibobo1205 Mar 4, 2025
7e374ec
Merge pull request #6214 from raymondliu0711/fix/tstore_revert
CodeNinjaEvan Mar 6, 2025
f82d152
Merge pull request #6224 from yanghang8612/feat/reprioritize_internal…
CodeNinjaEvan Mar 6, 2025
f6e4168
Merge pull request #6228 from halibobo1205/feat/services_init_opt
CodeNinjaEvan Mar 6, 2025
300d3ac
feat(build): add implicit_dependency for build
halibobo1205 Mar 6, 2025
09c803f
add getTransactionTriggers unit test
zeusoo001 Mar 7, 2025
e649699
Merge pull request #6229 from halibobo1205/feat/add_explicit_dependency
CodeNinjaEvan Mar 7, 2025
bfb1197
optimize event service close logic
zeusoo001 Mar 7, 2025
c8195ca
fix EventServiceTest unit test
zeusoo001 Mar 7, 2025
d56502f
fix unit test when process exit
zeusoo001 Mar 7, 2025
a30a3b7
feat(tvm): add blob opcodes
Mar 10, 2025
0a2fb53
feat(tvm): add allowTvmBlob proposal for TVM blob related ops and pre…
textml Mar 10, 2025
d442c93
feat(crypto): add setup file
Mar 10, 2025
a6c44c5
feat(crypto): change ckzg4844 path
textml Mar 10, 2025
a25c302
feat(crypto): add ckzg jni files and tests
Mar 10, 2025
ca57630
feat(crypto): add linux jni file
Mar 10, 2025
b168067
opt(crypto): opt blob precompiled return value
Mar 10, 2025
fa23379
Merge pull request #6227 from zeusoo001/event-907
CodeNinjaEvan Mar 11, 2025
c9b7fbc
feat(service): exit when params init failed
halibobo1205 Mar 9, 2025
a6bf35c
feat(test): refactor codes
Mar 11, 2025
0570b60
feat(event): optimize history event service close logic
zeusoo001 Mar 11, 2025
2519294
feat(event): improve HistoryEventService unit test
zeusoo001 Mar 11, 2025
979567e
Merge pull request #6232 from raymondliu0711/feature/add_blob_opcodes
CodeNinjaEvan Mar 11, 2025
da05a19
Merge pull request #6234 from zeusoo001/event-his
CodeNinjaEvan Mar 11, 2025
8ca7085
Merge pull request #6233 from halibobo1205/feat/services_init_opt
CodeNinjaEvan Mar 12, 2025
b753741
feat(jsonrpc): eth_newFilter not supports finalized as block parameter
waynercheung Mar 13, 2025
4e404ec
refactor(jsonrpc): check finalized in newFilter, not as a function
waynercheung Mar 14, 2025
70aa382
Merge pull request #6238 from waynercheung/feat/disable_finalized
CodeNinjaEvan Mar 14, 2025
8841b5e
feat(jsonrpc): keep old version err_msg when block range is invalid(f…
waynercheung Mar 14, 2025
406274d
Merge pull request #6239 from waynercheung/feat/opt_err_msg
CodeNinjaEvan Mar 14, 2025
97213d9
feat(version): update version to 4.8.0
halibobo1205 Mar 14, 2025
5d1ff37
Merge pull request #6240 from halibobo1205/version/update_version
CodeNinjaEvan Mar 14, 2025
4aa4a98
feat(event): set internalTransactionList to null in the new event ser…
zeusoo001 Mar 19, 2025
b414f7d
Merge pull request #6245 from zeusoo001/modify-internalTransactionList
CodeNinjaEvan Mar 19, 2025
716af38
opt(tvm): kzg precompile contract log
Mar 20, 2025
80b9cad
Merge pull request #6247 from raymondliu0711/feature/opt_kzg_log
CodeNinjaEvan Mar 20, 2025
c1ecb3c
feat(event): limite block loading speed
zeusoo001 Mar 21, 2025
f22c18a
use if instead of math methods
zeusoo001 Mar 24, 2025
04952bc
Merge pull request #6256 from zeusoo001/event-limit-speed
CodeNinjaEvan Mar 24, 2025
ab4b70b
feat(dependencies): remove org.quartz-scheduler:quartz
halibobo1205 Mar 24, 2025
3e1ab7f
Merge pull request #6257 from halibobo1205/feat/remove_quartz
CodeNinjaEvan Mar 24, 2025
ee58884
feat(CI): fix Sonar Check & CheckStyle
halibobo1205 Mar 25, 2025
25e10c7
fix(config): restore maxFastForwardNum to correct default value
jwrct Mar 26, 2025
29bb7bc
Merge pull request #6260 from halibobo1205/feat/CI_check
CodeNinjaEvan Mar 26, 2025
45c656e
Merge branch 'release_v4.8.0' into sync_update
jwrct Mar 26, 2025
44967fb
feat(log): optimize log information
zeusoo001 Mar 27, 2025
e3ad0ca
reactor(*): rename allowStrictMath2 to disableJavaLangMath
halibobo1205 Mar 26, 2025
6a7465a
Merge pull request #6261 from fyyhtx/sync_update
CodeNinjaEvan Mar 27, 2025
ed324ea
Merge branch 'release_v4.8.0' of github.com:tronprotocol/java-tron in…
zeusoo001 Mar 27, 2025
e74ce69
Merge pull request #6262 from halibobo1205/feat/rename_use_strictMath2
CodeNinjaEvan Mar 27, 2025
1e8d839
Merge pull request #6265 from zeusoo001/opt-log
CodeNinjaEvan Mar 27, 2025
0eaf62e
opt(tvm): opt kzg jni links
Mar 30, 2025
0e4652d
func(cfg): revert reprioritize for old internal tx switches
yanghang8612 Mar 31, 2025
4d3ff56
Merge pull request #6270 from raymondliu0711/feat/opt_kzg_methods
CodeNinjaEvan Mar 31, 2025
10186b0
Merge pull request #6269 from yanghang8612/revert_reprioritize_old_in…
CodeNinjaEvan Mar 31, 2025
9965edc
feat(jsonrpc): check maxSubTopics and maxBlockRange to be consistent …
waynercheung Apr 1, 2025
fd89088
feat(jsonrpc): refactor to set min and max section
waynercheung Apr 1, 2025
c2383f7
Merge pull request #6271 from waynercheung/feat/harden_filters
CodeNinjaEvan Apr 1, 2025
2cc57bd
Merge pull request #6197 from imalasong/feature/pr2
CodeNinjaEvan Apr 1, 2025
cb18372
func(event): optimize energy price querying method
yanghang8612 Apr 2, 2025
95082c2
fix(jsonrpc): use min(to, currentMaxBlock) to compare with maxBlockRange
waynercheung Apr 2, 2025
3780088
func(cfg): add saveCancelAllUnfreezeV2Details switch description to t…
yanghang8612 Apr 2, 2025
8201860
Merge pull request #6275 from waynercheung/feat/harden_filters
CodeNinjaEvan Apr 2, 2025
6474c7d
Merge pull request #6274 from yanghang8612/feat/optimize_energyprice_…
CodeNinjaEvan Apr 2, 2025
4fff540
feat(tvm): remove kzg precompile
Apr 10, 2025
212a4ec
Merge pull request #6283 from raymondliu0711/feature/remove_precompile
CodeNinjaEvan Apr 10, 2025
b3555dd
Merge pull request #6277 from tronprotocol/release_v4.8.0
CodeNinjaEvan Apr 29, 2025
d393930
update a new version. version name:GreatVoyage-v4.7.7-243-gb3555dd655…
Apr 29, 2025
72e31d9
Merge pull request #6300 from raymondliu0711/version/GreatVoyage-v4.7…
CodeNinjaEvan Apr 29, 2025
0cd0eef
Merge branch 'master' into develop
May 8, 2025
a1fb8f9
Merge pull request #6118 from InventiveCoder/develop
CodeNinjaEvan May 8, 2025
1e35f79
Merge pull request #6315 from raymondliu0711/feature/merge_master_to_…
CodeNinjaEvan May 12, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public enum ErrCode {
PROMETHEUS_INIT(1),
TRON_NET_SERVICE_INIT(1),
ZCASH_INIT(1),
CKZG_INIT(1),
LOG_LOAD(1),
WITNESS_INIT(1),
RATE_LIMITER_INIT(1),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,40 +47,28 @@ public static void loadNativeLibrary() {
public static final BigInteger BLS_MODULUS =
new BigInteger(
"52435875175126190479447740508185965837690552500527637822603658699938581184513");

/** The number of bytes in a g1 point. */
protected static final int BYTES_PER_G1 = 48;

/** The number of bytes in a g2 point. */
protected static final int BYTES_PER_G2 = 96;

/** The number of bytes in a BLS scalar field element. */
public static final int BYTES_PER_FIELD_ELEMENT = 32;

/** The number of bits in a BLS scalar field element. */
protected static final int BITS_PER_FIELD_ELEMENT = 255;

/** The number of field elements in a blob. */
public static final int FIELD_ELEMENTS_PER_BLOB = 4096;

/** The number of field elements in an extended blob. */
protected static final int FIELD_ELEMENTS_PER_EXT_BLOB = FIELD_ELEMENTS_PER_BLOB * 2;

/** The number of field elements in a cell. */
public static final int FIELD_ELEMENTS_PER_CELL = 64;

/** The number of bytes in a KZG commitment. */
public static final int BYTES_PER_COMMITMENT = 48;

/** The number of bytes in a KZG proof. */
public static final int BYTES_PER_PROOF = 48;

/** The number of bytes in a blob. */
public static final int BYTES_PER_BLOB = FIELD_ELEMENTS_PER_BLOB * BYTES_PER_FIELD_ELEMENT;

/** The number of bytes in a single cell. */
public static final int BYTES_PER_CELL = BYTES_PER_FIELD_ELEMENT * FIELD_ELEMENTS_PER_CELL;

/** The number of cells in an extended blob. */
public static final int CELLS_PER_EXT_BLOB =
FIELD_ELEMENTS_PER_EXT_BLOB / FIELD_ELEMENTS_PER_CELL;
Expand Down Expand Up @@ -214,15 +202,6 @@ public static native boolean verifyBlobKzgProof(
public static native boolean verifyBlobKzgProofBatch(
byte[] blobs, byte[] commitmentsBytes, byte[] proofsBytes, long count);

/**
* Get the cells for a given blob.
*
* @param blob the blob to get cells for
* @return the cells
* @throws CKZGException if there is a crypto error
*/
public static native byte[] computeCells(byte[] blob);

/**
* Get the cells and proofs for a given blob.
*
Expand Down
Binary file modified crypto/src/main/resources/lib/aarch64/libckzg4844jni.dylib
Binary file not shown.
Binary file modified crypto/src/main/resources/lib/aarch64/libckzg4844jni.so
Binary file not shown.
Binary file modified crypto/src/main/resources/lib/amd64/ckzg4844jni.dll
Binary file not shown.
Binary file modified crypto/src/main/resources/lib/amd64/libckzg4844jni.so
Binary file not shown.
Binary file modified crypto/src/main/resources/lib/x86_64/libckzg4844jni.dylib
100755 → 100644
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.apache.commons.io.FileUtils;
import org.springframework.stereotype.Component;
import org.tron.common.crypto.ckzg4844.CKZG4844JNI;
import org.tron.core.exception.TronError;

@Slf4j
@Component
Expand All @@ -31,11 +32,15 @@ public static void initCKZG4844() {
if (loaded.compareAndSet(false, true)) {
logger.info("init ckzg 4844 begin");

CKZG4844JNI.loadNativeLibrary();
try {
CKZG4844JNI.loadNativeLibrary();

String setupFile = getSetupFile("trusted_setup.txt");
String setupFile = getSetupFile("trusted_setup.txt");

CKZG4844JNI.loadTrustedSetup(setupFile, 0);
CKZG4844JNI.loadTrustedSetup(setupFile, 0);
} catch (Exception e) {
throw new TronError(e, TronError.ErrCode.CKZG_INIT);
}

logger.info("init ckzg 4844 done");
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
package org.tron.core.zksnark;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThrows;
import static org.mockito.Mockito.mockStatic;

import java.util.Arrays;
import lombok.extern.slf4j.Slf4j;
import org.bouncycastle.util.encoders.Hex;
import org.junit.Assert;
import org.junit.Test;
import org.mockito.MockedStatic;
import org.tron.common.crypto.ckzg4844.CKZG4844JNI;
import org.tron.common.crypto.ckzg4844.CKZGException;
import org.tron.common.crypto.ckzg4844.CellsAndProofs;
import org.tron.common.crypto.ckzg4844.ProofAndY;
import org.tron.core.exception.TronError;
import org.tron.core.zen.KZGPointEvaluationInitService;

@Slf4j
Expand Down Expand Up @@ -79,5 +85,12 @@ public void testVerifyBlobKzgProof() {
}

KZGPointEvaluationInitService.freeSetup();

try (MockedStatic<CKZG4844JNI> mock = mockStatic(CKZG4844JNI.class)) {
mock.when(CKZG4844JNI::loadNativeLibrary).thenThrow(new RuntimeException());
TronError thrown = assertThrows(TronError.class,
KZGPointEvaluationInitService::initCKZG4844);
assertEquals(TronError.ErrCode.CKZG_INIT, thrown.getErrCode());
}
}
}