Skip to content

Commit

Permalink
transaction: add new oracle response codes
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-khimov committed Nov 9, 2020
1 parent a9dddf8 commit 2f0cbcf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions pkg/core/transaction/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ const MaxOracleResultSize = math.MaxUint16

// Enumeration of possible oracle response types.
const (
Success OracleResponseCode = 0x00
NotFound OracleResponseCode = 0x10
Timeout OracleResponseCode = 0x12
Forbidden OracleResponseCode = 0x14
Error OracleResponseCode = 0xff
Success OracleResponseCode = 0x00
ConsensusUnreachable OracleResponseCode = 0x10
NotFound OracleResponseCode = 0x12
Timeout OracleResponseCode = 0x14
Forbidden OracleResponseCode = 0x16
ResponseTooLarge OracleResponseCode = 0x18
InsufficientFunds OracleResponseCode = 0x1a
Error OracleResponseCode = 0xff
)

// Various validation errors.
Expand Down

0 comments on commit 2f0cbcf

Please sign in to comment.