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

Chaguar / common / 34934334155
82%

Build:
DEFAULT BRANCH: main
Ran 15 Sep 2026 05:51AM UTC
Jobs 1
Files 198
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

15 Sep 2026 05:49AM UTC coverage: 81.967% (+0.04%) from 81.93%
34934334155

push

github

web-flow
[testcrypto] Let a block's owner prepare it without a clone or a rehash (#186)

#### Type of change

- New feature
- Test update

#### Description

- `InPlace` writes the header and metadata into the block passed in,
rather than into a deep clone of
it. The clone is what makes it safe to prepare a block the caller
intends to reuse or submit twice,
so this is opt-in: for a producer that built the block for this call
alone, the copy is pure waste.
- `ReuseDataHash` takes the data hash from the header the caller already
filled in, so a producer can
compute it off this call's critical path. It is ignored when the block
has no header or an empty
hash, so a caller that sets it and forgets to supply one gets a correct
block rather than a silently
  corrupt one.
- Both default to today's behaviour, so no existing caller changes.
- Tested by equivalence, which is the only thing that makes the options
worth having: the block
prepared the fast way is proto-identical to the block prepared the
cloning way, in place returns the
same object it was given, and asking to reuse a hash that was never
supplied still produces the
  right one.

#### Related issues

- resolves #185

Signed-off-by: Liran Funaro <liran.funaro@gmail.com>

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

13645 of 16647 relevant lines covered (81.97%)

0.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 34934334155.1 15 Sep 2026 05:51AM UTC 198
81.97
GitHub Action Run
Source Files on build 34934334155
  • Tree
  • List 198
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ac2347e5 on github
  • Prev Build on main (#34463562854)
  • Next Build on main (#34954367312)
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