Skip to content

Weight needs to be cached for OP_TXWEIGHT #1031

@roconnor-blockstream

Description

@roconnor-blockstream

The operation GetSerializeSize is O(transaction_size) instead of O(1). Thus this value need to be cached.

61b5152#diff-a0337ffd7259e8c7c9a7786d6dbd420c80abfa1afdb34ebae3261109d9ae3c19R2426-R2431

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions