btcs

bitcoin script parser/evaluator/compiler/decompiler
git clone git://jb55.com/btcs
Log | Files | Refs | README | LICENSE

consts.h (631B)


      1 
      2 #ifndef BTCS_CONSTS_H
      3 #define BTCS_CONSTS_H
      4 
      5 // Maximum number of bytes pushable to the stack
      6 #define MAX_SCRIPT_ELEMENT_SIZE 520
      7 
      8 // Maximum number of non-push operations per script
      9 static const int MAX_OPS_PER_SCRIPT = 201;
     10 
     11 // Maximum number of public keys per multisig
     12 static const int MAX_PUBKEYS_PER_MULTISIG = 20;
     13 
     14 // Maximum script length in bytes
     15 static const int MAX_SCRIPT_SIZE = 10000;
     16 
     17 // Threshold for nLockTime: below this value it is interpreted as block number,
     18 // otherwise as UNIX timestamp.
     19 static const unsigned int LOCKTIME_THRESHOLD = 500000000; // Tue Nov  5 00:53:20 1985 UTC
     20 
     21 
     22 #endif /* BTCS_CONSTS_H */