Skip to content

Instantly share code, notes, and snippets.

Gert-Jaap Glasbergen gertjaap

Block or report user

Report or block gertjaap

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View lint.txt
share/qt/ invalid syntax at "print('Cannot extract strings: xgettext utility is not installed or not configured.',file=sys.stderr)"
test/functional/ invalid syntax at "print("Opening latest test directory: {}".format(testdir), file=sys.stderr)"
test/functional/ invalid syntax at "def next_block(self, number, spend=None, additional_coinbase_value=0, script=CScript([OP_TRUE]), solve=True, *, version=1):"
test/functional/ invalid syntax at "def get_node_output(self, *, ret_code_expected):"
test/functional/ invalid syntax at "def chain_tip(b_hash, *, status='headers-only', branchlen=1):"
test/functional/ invalid syntax at "def __init__(self, *, str_data):"
test/functional/ invalid syntax at "def bootstrap_p2p(self, *, num_connections=1):"
test/functional/test_framework/ invalid syntax at "def create_block(hashprev, coinbase, ntime=None, *, versio
gertjaap / dlcflow
Last active Apr 13, 2018
Message flow for DLC
View dlcflow
// Structure for storing the contract data
type DlcContract struct {
Idx uint64 // Index of the contract for referencing in commands
ContractPubKey [33]byte // Unique key for the contract so we can reference it in messages (accept/decline) in case we have more than one contract between two peers
CoinType uint32 // Coin type
OracleA [33]byte // Pub keys of the oracle
OracleR [33]byte // Pub key of the data point we are using
OracleTimestamp uint64 // Expected timestamp (epoch) of publication
ValueAllOurs, ValueAllTheirs uint64 // The values of the data point based on which all money in the contract goes to either party
You can’t perform that action at this time.