ergoplatform / ergo

Ergo protocol description & reference client implementation
https://ergoplatform.org/
Creative Commons Zero v1.0 Universal
504 stars 170 forks source link

Test for soft-forked acceptance of Ergoscript containing unknown methods (after 6.0 activation) #2146

Closed kushti closed 6 months ago

kushti commented 7 months ago

In this PR , a new test is added.

In this test we check how current version of the node (block protocol v3, at the moment of writing this test) will execute a script which contains a method added in next version of the protocol (namely, BIgInt.nbits), which is unknown to the node.

As shown in the test, rule #1010 (CheckAndGetMethod) should be replaced for new methods to be passed by the node not recognizing it.