HomePhabricator

Cache script execution on a per transaction basis
f132ac32ab97Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

Cache script execution on a per transaction basis

Summary:
This ensure that we do not run the same script twice with the same set of flags. because we check script when accepting a transaction in the mempool, this shoudl ensure that we do not run the script when connecting a new block.

This is based on core's PR10192 , but the structure is somewhat different (the cache is moved in its own file for instance).

Test Plan:

make check
../qa/pull-tester/rpc-tests.py -extended

Run a node on testnet for a day, it looks like it all works well.

Reviewers: freetrader, CCulianu, #bitcoin_abc, dagurval

Reviewed By: #bitcoin_abc, dagurval

Subscribers: dagurval, sickpig

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

Details

Provenance
deadalnixAuthored on Sep 4 2017, 11:34
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Reviewer
Restricted Project
Differential Revision
D530: Cache script execution on a per transaction basis
Parents
rSTAGING7c7aa1738d19: Check transaction that enter the mempool against the flags required for the…
Branches
Unknown
Tags
Unknown