HomePhabricator

[chronik] fix script compression

Description

[chronik] fix script compression

Summary:
Some non-standard PUSH33 data CHECKSIG and PUSH65 data CHECKSIG where data is not a valid pubkey were incorrectly wrapped as P2PK, which caused the compressed script to be wrong in the db.

This fixes the compression for new keys. The existing db can be fixed in a separate diff if we decide it is necessary.

Test Plan: ninja check-all check-crates

Reviewers: #bitcoin_abc, Fabien, tobias_ruck

Reviewed By: #bitcoin_abc, Fabien, tobias_ruck

Subscribers: tobias_ruck, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D16899

Details

Provenance
PiRKAuthored on Sat, Oct 12, 09:18
PiRKPushed on Tue, Oct 15, 07:47
Reviewer
Restricted Project
Differential Revision
D16899: [chronik] fix script compression
Parents
rABC2c02a0dcb3a9: [seeder] Make unreliable node reasons clear and consistent
Branches
Unknown
Tags
Unknown