Author: Gavin Andresen 2011-08-26 19:44:59
Published on: 2011-08-26T19:44:59+00:00
Gavin Andresen, a prominent Bitcoin developer, suggests whitelisting the basic CHECKMULTISIG form, which he considers uncontroversial. He discovered a bug while writing a unit test and stepping through the CHECKMULTISIG code. The issue lies in line 797 of the code, where the variable 'isig' is incorrectly defined as '++i' instead of 'i'. As a result, CHECKMULTISIG expects one extra item on the stack. To work around this problem, Andresen recommends using a standard transaction type with a specific scriptSig and scriptPubKey format.
Updated on: 2023-05-26T20:33:04.238097+00:00