Giter Site home page Giter Site logo

electrumx's Introduction

https://travis-ci.org/kyuupichan/electrumx.svg?branch=master

ElectrumX - Reimplementation of electrum-server

Licence:MIT
Language:Python (>= 3.7)
Original Author:Neil Booth

This project is a fork of kyuupichan/electrumx. The original author dropped support for Bitcoin, which we intend to keep.

ElectrumX allows users to run their own Electrum server. It connects to your full node and indexes the blockchain, allowing efficient querying of history of arbitrary addresses. The server can be exposed publicly, and joined to the public network of servers via peer discovery. As of May 2020, a significant chunk of the public Electrum server network runs ElectrumX.

Adding a new coin

  • Add an ansible setup script inside provisioning/tasks
  • Add parameters inside lib/coins.py

Credits

Documentation

See readthedocs.

electrumx's People

Contributors

a-bezrukov avatar ahmedbodi avatar bauerj avatar cipig avatar cryptcoin-junkey avatar cunhasb avatar dalijolijo avatar ddude1 avatar domob1812 avatar erasmospunk avatar eukreign avatar fr3aker avatar fujicoin avatar hypermoist avatar jeremyrand avatar kyuupichan avatar laodc avatar lclc avatar peerchemist avatar pooler avatar shsmith avatar sombernight avatar sphericale avatar subpar42 avatar thelazier avatar valesi avatar wakiyamap avatar wo01 avatar yakimka avatar zebra-lucky avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

electrumx's Issues

Adding new coin

Hello guys :)

Im learning how to add electrumx to new coin, and i could use some pointers.

Im kinda stuck at lib/coins.py file.

Help with Blackcoin, missing coinstake output

At the moment we are validating the Blackcoin coin code, and we are running into this balance difference situation between the electrumx db and the native blockchain (wallet and explorer).

It might be incompatibility between Blackcoin and the libraries that we currently (not?) use , but we could really need a push into the right direction. The case:

get_balance result from electrum_server (captured from the app)

{"jsonrpc":"2.0","id":"795","method":"blockchain.scripthash.get_balance","params":["61695a4c3c3922a8357d71bc0b3c774890451d8619ab62ed8d1e1068c24640fb"]}
{"jsonrpc": "2.0", "result": {"confirmed": 1100000000000, "unconfirmed": 0}, "id": "795"}

from the native wallet we see a different balance, which we can partly explain, because of some coinstakes not being mature yet. But we are still "missing" 551.5 BLK. (11551.5 - 11000 BLK)

"total_balance": 16500.56397743,
"balance": 11551.50000000,
"staked_balance": 4949.06397743,

The missing 551 BLK can be seen on the Explorer as part of this tx
https://chainz.cryptoid.info/blk/tx.dws?11101448.htm (check Raw Transaction tab)

 "value": 551.5,
 "n": 1,
 "scriptPubKey": {
    "asm": "02e884c3c32bdaddc9b2ffdd2cafc1c7b73ff4f7cafe3885a129974b3b72e18d35 OP_CHECKSIG",
    "hex": "2102e884c3c32bdaddc9b2ffdd2cafc1c7b73ff4f7cafe3885a129974b3b72e18d35ac",
    "reqSigs": 1,
    "type": "pubkey",
    "addresses": [
       "BPzTQdCPobZ5f6j1EJjAgsRv7m3JfeLBmy"

So the mature coinstake output can not been seen back on the address via Electrum.

checking this via RPC also confirms it

$ electrumx_rpc query BPzTQdCPobZ5f6j1EJjAgsRv7m3JfeLBmy

History #305: height 3,432,016 tx_hash 538d65ac1ec6131bc1922d5bc77feaedab80340520c66e3fb3694248e7edf3ce
History #306: height 3,432,114 tx_hash 98ddb858ca00e7021a2d1d2e991dbabe0d67164a292c49d16cdb4008e25d689c
History #307: height 3,432,538 tx_hash 13806ea515cc05895e0a99b61a7b4327c3cae47be0353ad49c3c9d0392ab536f
UTXO #1: tx_hash db70f402c6066d4f7da5c90c2e9bf867361e7968ce511a138fe0e10912d27fb3 tx_pos 0 height 3,429,940 value 55,000,000,000
UTXO #2: tx_hash a97b58b41cf57e5449cb9e16377d598be5cb98fa04676b23c8d3f9b0014ad7c5 tx_pos 0 height 3,429,940 value 55,000,000,000
UTXO #3: tx_hash dac364c71931419423b4b7dbb92616b9509e2f904bd7c1ff7d0c29a98d9978d1 tx_pos 0 height 3,429,940 value 55,000,000,000
UTXO #4: tx_hash 1bf8772bb2de541c88fec82b8bfae31dcb23c5e9528e837c3831e8e5400349c3 tx_pos 0 height 3,429,940 value 55,000,000,000
UTXO #5: tx_hash 9da589ac96202e101c1439f9f7e4d325d2e0b113b022832028944964dfd69c6b tx_pos 0 height 3,429,940 value 55,000,000,000
UTXO #6: tx_hash 535d9724479753a00f23d85ac0ba33ce61609b98413125293d1a74f9a0d8cfe8 tx_pos 0 height 3,429,940 value 55,000,000,000
UTXO #7: tx_hash 482e73b34ef77fd1b12cf6e4c9f62e6c394edb06b9bc3168d14fee2fffb00bef tx_pos 0 height 3,429,940 value 55,000,000,000
UTXO #8: tx_hash c4505da6b726f853a9cb56f49bbd97163ce1a8647f0399f16f23d392965f5258 tx_pos 0 height 3,429,940 value 55,000,000,000
UTXO #9: tx_hash ccf09f3bdaab008a45425718f4668fb9c39867562a73d54f71e4ce0afbf16f54 tx_pos 0 height 3,429,940 value 55,000,000,000
UTXO #10: tx_hash a1d06794b6ee1ccbde963b5245aa22dcd9c0cf3f079de89b639f71d5ee958597 tx_pos 1 height 3,429,940 value 55,000,000,000
UTXO #11: tx_hash 9ad00229242331e846b87f2be1e8169b8dd4ce865dcec1dff5284956ebc3a890 tx_pos 1 height 3,429,940 value 55,000,000,000
UTXO #12: tx_hash 526896dd63fd12576c561cc52c9a6e5c0453851079d0ef9817a3a82767c4cc4b tx_pos 1 height 3,429,940 value 55,000,000,000
UTXO #13: tx_hash ad361458a1d2280651523a9c9adada56c58788f56f90368693c1ca823a5462b0 tx_pos 1 height 3,429,940 value 55,000,000,000
UTXO #14: tx_hash 63319882a0d5579404c9ae30743a26bf3103647fdecb5a2c0c6b9a24cad11f27 tx_pos 1 height 3,429,940 value 55,000,000,000
UTXO #15: tx_hash 0d95e3eec5f6033a659dc827e85a3f3b76e4c176f0ebfcda3b61379cde656446 tx_pos 1 height 3,429,940 value 55,000,000,000
UTXO #16: tx_hash adc5f8c5bd74376dd85e41ecb394900095405a58697261f0c3466625e2dcca8a tx_pos 1 height 3,429,940 value 55,000,000,000
UTXO #17: tx_hash 49aa3411a68c823bbe83623a554afdb4ac2b7a633a777b82c807035480b2e0de tx_pos 1 height 3,429,940 value 55,000,000,000
UTXO #18: tx_hash cf852c49048854032c0f6f731c56527726942dee3323758781a89a31028b1b43 tx_pos 1 height 3,429,940 value 55,000,000,000
UTXO #19: tx_hash f4194b05192f4e0e17f4616b38d3232c5252112e66f8e30bdec3d2c5f01c3fa9 tx_pos 1 height 3,429,940 value 55,000,000,000
UTXO #20: tx_hash ea3ccc95040ac59f854c0feb6f0ef6b93d32e944deda3090cb87615adedb1bbc tx_pos 1 height 3,429,940 value 55,000,000,000
Balance: 11,000 BLK

What are we missing?

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.