• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tari-project / tari / 40375378943
79%

Build:
DEFAULT BRANCH: development
Ran 26 Oct 2026 07:58PM UTC
Jobs 1
Files 799
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Oct 2026 06:10PM UTC coverage: 76.807% (-0.5%) from 77.278%
40375378943

push

github

web-flow
test(grpc,script): cover MAX_SCRIPT_BYTES and 8 MiB gRPC script rejection (#8012) (#8167)

## Summary
Fixes #8012 (part of #8025).

The `MAX_SCRIPT_BYTES` (4096) pre-parse check in
`TariScript::from_bytes` and the `MAX_SCRIPT_OPCODES` (128) early-stop
check in `Opcode::parse` landed in #8065. This PR completes the
remaining acceptance criteria for #8012:
- Adds a regression test in
`minotari_app_grpc::conversions::transaction_output` verifying that
converting a `grpc::TransactionOutput` carrying an 8 MiB `script` is
rejected immediately with `ScriptError::ScriptTooLarge`.
- Expands `from_bytes_rejects_oversized_scripts` in `tari_script` to
cover a valid 4096-byte (`MAX_SCRIPT_BYTES`) script being accepted and
128 vs 129 single-byte opcodes via `TariScript::from_bytes`.



<!-- greptile_comment -->

<!-- greptile_summary -->

<h2><a
href="https://app.greptile.com/api/retrigger?id=87384866"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source
media="(prefers-color-scheme: light)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img
alt="Retrigger"
src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"
align="right"></picture></a><a
href="https://app.greptile.com/tari-project/github/tari-project/tari/-/pull/8167"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source
media="(prefers-color-scheme: light)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img
alt="View in Greptile"
src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"
align="right"></picture></a>Confidence Score: 5/5</h2>

<!-- greptile-impact-verdict --> The PR appears safe to merge.

<h3>Summary</h3>

Adds regression tests for the existing script limits. Production code is
u... (continued)

17 of 17 new or added lines in 1 file covered. (100.0%)

942 existing lines in 32 files now uncovered.

137469 of 178980 relevant lines covered (76.81%)

301985.92 hits per line

Coverage Regressions

Lines Coverage ∆ File
450
63.56
-6.6% base_layer/core/src/chain_storage/blockchain_database.rs
231
56.59
-5.5% base_layer/core/src/chain_storage/lmdb_db/lmdb_db.rs
53
76.89
-6.45% base_layer/core/src/test_helpers/blockchain.rs
44
87.99
-4.13% base_layer/core/src/chain_storage/lmdb_db/validator_node_store.rs
32
83.56
-6.26% base_layer/core/src/validation/aggregate_body/aggregate_body_chain_validator.rs
17
75.68
-15.32% base_layer/transaction_components/src/transaction_components/side_chain/validator_node_registration.rs
14
72.38
-2.82% base_layer/core/src/validation/helpers.rs
11
50.0
-50.0% base_layer/core/src/chain_storage/smt_hasher.rs
9
64.79
-2.66% base_layer/core/src/chain_storage/db_transaction.rs
9
97.0
-0.54% base_layer/transaction_components/src/consensus/consensus_constants.rs
8
79.86
-5.76% base_layer/transaction_components/src/transaction_components/output_features.rs
7
82.4
-2.62% base_layer/core/src/base_node/sync/rpc/sync_utxos_task.rs
7
87.8
-1.05% comms/core/src/connection_manager/dialer.rs
7
92.24
-0.55% comms/core/src/multiplexing/yamux.rs
5
79.44
-0.83% base_layer/core/src/base_node/rpc/query_service.rs
5
78.13
-7.81% comms/core/src/pipeline/outbound.rs
5
92.42
-1.02% comms/dht/src/outbound/broadcast.rs
4
97.06
-0.78% base_layer/core/src/validation/header/header_full_validator.rs
3
98.98
-0.76% base_layer/core/src/consensus/base_node_consensus_manager.rs
3
68.47
-2.7% base_layer/transaction_components/src/transaction_components/side_chain/sidechain_feature.rs
3
77.95
0.07% comms/core/src/connectivity/manager.rs
2
37.84
-1.08% base_layer/core/src/base_node/rpc/service.rs
2
87.03
-0.22% base_layer/core/src/base_node/service/service.rs
2
73.08
0.0% base_layer/wallet/src/output_manager_service/storage/sqlite_db/mod.rs
2
89.03
-0.31% comms/core/src/connection_manager/peer_connection.rs
1
55.26
0.0% base_layer/core/src/validation/error.rs
1
80.82
-1.37% base_layer/node_components/src/blocks/chain_block.rs
1
83.89
-0.09% base_layer/wallet/src/storage/sqlite_db/wallet.rs
1
49.06
-0.94% comms/core/src/connectivity/selection.rs
1
87.65
0.0% comms/core/src/protocol/messaging/inbound.rs
1
36.36
-9.09% comms/dht/src/outbound/error.rs
1
33.96
-1.89% comms/dht/src/outbound/message.rs
Jobs
ID Job ID Ran Files Coverage
1 40375378943.1 26 Oct 2026 07:58PM UTC 799
76.81
GitHub Action Run
Source Files on build 40375378943
  • Tree
  • List 799
  • Changed 45
  • Source Changed 1
  • Coverage Changed 45
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40375378943
  • cfd0755e on github
  • Prev Build on development (#40313433085)
  • Next Build on development (#40467144894)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc