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/extract_strings_qt.py:58: invalid syntax at "print('Cannot extract strings: xgettext utility is not installed or not configured.',file=sys.stderr)"
test/functional/combine_logs.py:53: invalid syntax at "print("Opening latest test directory: {}".format(testdir), file=sys.stderr)"
test/functional/feature_block.py:1281: invalid syntax at "def next_block(self, number, spend=None, additional_coinbase_value=0, script=CScript([OP_TRUE]), solve=True, *, version=1):"
test/functional/feature_help.py:19: invalid syntax at "def get_node_output(self, *, ret_code_expected):"
test/functional/mining_basic.py:191: invalid syntax at "def chain_tip(b_hash, *, status='headers-only', branchlen=1):"
test/functional/p2p_invalid_messages.py:20: invalid syntax at "def __init__(self, *, str_data):"
test/functional/p2p_invalid_tx.py:30: invalid syntax at "def bootstrap_p2p(self, *, num_connections=1):"
test/functional/test_framework/blocktools.py:52: invalid syntax at "def create_block(hashprev, coinbase, ntime=None, *, versio
@gertjaap
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.