forked from moneybutton/yours-bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more default function args; default Interp flags
- Use default function arguments of ES6/ES2015 available in Node 6.1 in more places. I went through every library class and replaced all obvious roundabout uses of default arguments with real default arguments. - Replace Interp default flags = 0 with more reasonable defaults, particularly P2SH and CHECKLOCKTIMEVERIFY. When using this code in a real full node, you need to specify flags manually because which flags to use depends on context. But when using the interpreter casually to build and test transactions, it is better to use all the flags. The only major flag that is not yet active is CHECKSEQUENCEVERIFY - we should enable that flag by default once it gets activated. It's worth noting however that whether that flag is used or not depends on the version of the transaction.
- Loading branch information
1 parent
ef69f4d
commit 4d309cc
Showing
7 changed files
with
29 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters