Skip to content

Commit

Permalink
add opcodes test
Browse files Browse the repository at this point in the history
  • Loading branch information
fffreedom committed Oct 8, 2018
1 parent f298925 commit 441c616
Show file tree
Hide file tree
Showing 3 changed files with 489 additions and 2 deletions.
1 change: 1 addition & 0 deletions logic/ltx/ltx.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func CheckRegularTransaction(transaction *tx.Tx) error {
}

// check standard
// ToDo: config
if model.ActiveNetParams.RequireStandard {
err := transaction.CheckStandard()
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions model/opcodes/opcode.go → model/opcodes/opcodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ const (
OP_NOP9 = 0xb8
OP_NOP10 = 0xb9
// More crypto
OP_CHECKDATASIG = 0xba
OP_CHECKDATASIGVERIFY = 0xbb
//OP_CHECKDATASIG = 0xba
//OP_CHECKDATASIGVERIFY = 0xbb
// The first op_code value after all defined opcodes
FIRST_UNDEFINED_OP_VALUE

Expand Down
Loading

0 comments on commit 441c616

Please sign in to comment.