-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjson_keys.py
79 lines (62 loc) · 1.28 KB
/
json_keys.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
type_key = "type"
# MESSAGE TYPES
hello_key = "hello"
peers_key = "peers"
getpeers_key = "getpeers"
object_key = "object"
getobject_key = "getobject"
ihaveobject_key = "ihaveobject"
chaintip_key = "chaintip"
getchaintip_key = "getchaintip"
mempool_key = "mempool"
getmempool_key = "getmempool"
error_key = "error"
message_keys = [
hello_key,
peers_key,
getpeers_key,
object_key,
getobject_key,
ihaveobject_key,
chaintip_key,
getchaintip_key,
mempool_key,
getmempool_key,
error_key,
]
# HELLO MESSAGE
version_key = "version"
agent_key = "agent"
# OBJECT TYPES
block_key = "block"
transaction_key = "transaction"
# OBJECT MESSAGE KEYS
objectid_key = "objectid"
# BLOCK KEYS
txids_key = "txids"
nonce_key = "nonce"
miner_key = "miner"
note_key = "note"
previd_key = "previd"
created_key = "created"
T_key = "T"
# TRANSACTION KEYS
inputs_key = "inputs"
outputs_key = "outputs"
outpoint_key = "outpoint"
txid_key = "txid"
index_key = "index"
sig_key = "sig"
pubkey_key = "pubkey"
value_key = "value"
height_key = "height"
# CHAINTIP KEYS
blockid_key = "blockid"
# INTERNAL KEYS
validity_key = "validity"
missing_key = "missing"
pending_key = "pending"
sender_key = "sender"
responses_key = "responses"
revalidation_key = "revalidation"
result_key = "result"