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

rebranded doged to xvg #4

Open
wants to merge 4 commits 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
8 changes: 4 additions & 4 deletions encompass-mercury.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ coind_password = pkbrpcpassword
coind_host = localhost
coind_port = 59060

[doged]
coind_user = dogedrpcuser
coind_password = rpcpassword
[verge]
coind_user = verge
coind_password = vergerpcpassword
coind_host = localhost
coind_port = 107337
coind_port = 20102
6 changes: 3 additions & 3 deletions src/chains/dogecoindark.py → src/chains/verge.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ class Currency(cryptocur.CryptoCur):
p2sh_version = 33
genesis_hash = '00000fc63692467faeb20cdb3b53200dc601d75bdfa1001463304cc790d77278'

coin_name = 'DogecoinDark'
code = 'DOGED'
coin_name = 'Verge'
code = 'XVG'

@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 = '#electrum-doged'
irc_channel = '#electrum-xvg'
1 change: 1 addition & 0 deletions src/deserialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ def parse_Transaction(vds, is_coinbase):
start = vds.read_cursor

fields = [('version', vds.read_int32, True), # version
('nTime', vds.read_int32, True), # nTime
('vin', vds.read_compact_size, False), # vin
('inputs', 'parse_inputs', True), # inputs
('vout', vds.read_compact_size, False), # vout
Expand Down