Code Monkey home page Code Monkey logo

electrum-dash-server's Introduction

Electrum-dash-server for the Electrum Dash client

  • Author: Thomas Voegtlin (ThomasV on the bitcointalk forum)
  • Dash codebase port Authors: ELM4Ever, Propulsion
  • Language: Python

Features

  • The server indexes UTXOs by address, in a Patricia tree structure described by Alan Reiner (see the 'ultimate blockchain compression' thread in the Bitcointalk forum)

  • The server requires dashd, leveldb, x11_hash and plyvel

  • The server code is open source. Anyone can run a server, removing single points of failure concerns.

  • The server knows which set of Bitcoin addresses belong to the same wallet, which might raise concerns about anonymity. However, it should be possible to write clients capable of using several servers.

Installation

  1. To install and run a server, see INSTALL. For greater detail on the installation process, see HOWTO.md.

  2. To start and stop the server, use the 'electrum-dash-server' script

License

Electrum-server is made available under the terms of the MIT License. See the included LICENSE for more details.

electrum-dash-server's People

Contributors

admin-slush avatar bauerj avatar bitfoo avatar blinkystitt avatar coblee avatar coinx-ltc avatar colindean avatar digitalhermit avatar ecdsa avatar erasmospunk avatar fireduck64 avatar gits7r avatar jkozera avatar justintarthur avatar kefkius avatar knocte avatar luke-jr avatar lvets avatar mirobit avatar mlapaglia avatar overlordq avatar ovidiusoft avatar pooler avatar ramblurr avatar red-coracle avatar ryanjohns avatar shsmith avatar theblazehen avatar thelazier avatar wozz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

electrum-dash-server's Issues

'electrum-dash-server start' does not work

Hi,

When I try to start Electrum server using 'electrum-dash-server start' -command, error occurs every time.
'electrum-dash-server stop' -command working ok.
I had to use 'run_electrum_dash_server' -command to start server, but this does not log the events to specified log -file.

Same error occurred, when I using:
"nohup run_electrum_dash_server > /dev/null 2>>/var/log/electrum-dash.log &".

"run_electrum_dash_server" working ok and also
"./run_electrum_dash_server >>/var/log/electrum-dash.log 2>&1" -command.
But when I using the latest command, I couldn't get it background.

OS:
Debian 8.5.0
3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64 GNU/Linux

I don't know how to fix this error.
error prints:

Traceback (most recent call last):
File "/home/jeppa/Downloads/git/electrum-dash-server/run_electrum_dash_server", line 307, in
start_server(config)
File "/home/jeppa/Downloads/git/electrum-dash-server/run_electrum_dash_server", line 234, in start_server
setup_network_params(config)
File "/home/jeppa/Downloads/git/electrum-dash-server/run_electrum_dash_server", line 73, in setup_network_params
utils.PUBKEY_ADDRESS = int(params.get('pubkey_address'))
AttributeError: 'NoneType' object has no attribute 'get'
Traceback (most recent call last):
File "/usr/local/bin/run_electrum_dash_server", line 4, in
import('pkg_resources').run_script('electrum-dash-server==1.0', 'run_electrum_dash_server')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 534, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1445, in run_script
exec(script_code, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/electrum_dash_server-1.0-py2.7.egg/EGG-INFO/scripts/run_electrum_dash_server", line 307, in

File "/usr/local/lib/python2.7/dist-packages/electrum_dash_server-1.0-py2.7.egg/EGG-INFO/scripts/run_electrum_dash_server", line 234, in start_server

File "/usr/local/lib/python2.7/dist-packages/electrum_dash_server-1.0-py2.7.egg/EGG-INFO/scripts/run_electrum_dash_server", line 73, in setup_network_params

AttributeError: 'NoneType' object has no attribute 'get'

blockchain_processor.py line 126, in dashd raise BaseException(r['error'])

Hi,
I'd like set up Electrum Dash server, but I have a strange problem now.
This is worked earlier like a charm, but then I had Linux Mint and little bit older Elertrum server version and dash core daemon.
Now I have Debian 8.5.0 (3.16.0-4-amd64), latest Dash core daemon and electrum-dash-server.
Dash Core Daemon version v0.12.0.58 (not compiled myself, binary downloaded from github)
Daemon working fine, but electrum server not when all block are pruned. I have started pruning from scratch, but not working.

I got always this error (all settings should be ok):

INFO:electrum-dash:catch_up: block 509150 (0.484s 18.325s) dbe3b3c51c45bf88100f07b6cf9109d95ceccc1b98c4695856294db02f554ea0
INFO:electrum-dash:catch_up: block 509200 (0.508s 12.740s) 35d2c2098b23ead375f62c5b2791e69036eebddb4d75efda0ed763c10c8fd5e8
INFO:electrum-dash:catch_up: block 509250 (0.402s 13.524s) b23121156331613836679df5658a6fdeef7e39d99f06c3e499134c4a57301862
INFO:electrum-dash:Blockchain is up to date.
INFO:electrum-dash:Memory pool initialized.
INFO:electrum-dash:blockchain: 509254 (0.003s)
Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, *_self.__kwargs)
File "/home/jeppa/Downloads/git/electrum-dash-server/src/blockchain_processor.py", line 86, in do_catch_up
self.main_iteration()
File "/home/jeppa/Downloads/git/electrum-dash-server/src/blockchain_processor.py", line 923, in main_iteration
proposals_status = self.get_proposals_status()
File "/home/jeppa/Downloads/git/electrum-dash-server/src/blockchain_processor.py", line 359, in get_proposals_status
return self.dashd('mnbudget', ['list'])
File "/home/jeppa/Downloads/git/electrum-dash-server/src/blockchain_processor.py", line 126, in dashd
raise BaseException(r['error'])
BaseException: {u'message': u'mnbudget "command"... ( "passphrase" )\nVote or show current budgets\n\nAvailable commands:\n prepare - Prepare proposal for network by signing and creating tx\n submit - Submit proposal for network\n vote-many - Vote on a Dash initiative\n vote-alias - Vote on a Dash initiative\n vote - Vote on a Dash initiative/budget\n getvotes - Show current masternode budgets\n getinfo - Show current masternode budgets\n show - Show all budgets\n projection - Show the projection of which proposals will be paid the next cycle\n check - Scan proposals and remove invalid\n nextblock - Get next superblock for budget system\n', u'code': -1}

I check "blockchain_processor.py", line 126" and it raised exception there.

    r = loads(respdata)
    if r['error'] is not None:
        raise BaseException(r['error'])
    return r.get('result')

"respdata" is very strange and that's why exception raised

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.