UNPKG
reddcore
Version:
latest (0.1.40)
0.1.40
0.1.36
Reddcoin Core Library in Javascript
github.com/reddcoin-project/reddcore
reddcoin-project/reddcore
reddcore
/
const.js
21 lines
(18 loc)
•
306 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
MSG
= {
TX
:
1
,
BLOCK
:
2
,
FILTERED_BLOCK
:
3
, };
MSG
.
to_str
=
function
(
t
) {
switch
(t) {
case
MSG
.
TX
:
return
'transaction'
;
case
MSG
.
BLOCK
:
return
'block'
;
case
MSG
.
FILTERED_BLOCK
:
return
'filtered block'
;
default
:
return
'unknown'
; } }
exports
.
MSG
=
MSG
;