Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OKCash OK updt #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions encompass-mercury.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,9 @@ coind_user = dogedrpcuser
coind_password = rpcpassword
coind_host = localhost
coind_port = 107337

[ok]
coind_user = okrpcuser
coind_password = rpcpassword
coind_host = localhost
coind_port = 6969
18 changes: 18 additions & 0 deletions src/chains/okcash.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import cryptocur
from cryptocur import chainhook

class Currency(cryptocur.CryptoCur):
p2pkh_version = 55
p2sh_version = 28
genesis_hash = '0000046309984501e5e724498cddb4aff41a126927355f64b44f1b8bba4f447e'

coin_name = 'OKCash'
code = 'OK'

@chainhook
def transaction_parse_fields(self, vds, is_coinbase, fields):
timestamp = ('timestamp', vds.read_int32, True)
fields.insert(1, timestamp)

irc_nick_prefix = 'EL_'
irc_channel = '#okcash'