No description
Find a file
2019-12-31 17:26:08 +02:00
bitcoin nit 2019-11-25 00:23:26 +02:00
robin_hood Switched to using robin_hood::unordered_flat_map 2019-12-05 13:02:43 +02:00
rocksdb Nit in rocksdb headers 2019-11-28 18:35:34 +02:00
staticlibs Compile fixups for linux; rebuilt rocksdb for linux with USE_RTTI 2019-12-12 01:28:27 +02:00
test Got Win64 working with librocksdb.a. Yippeee. 2019-11-28 17:18:43 +02:00
.gitignore Initial revision. Just laying out a skeleton to build on. 2019-04-23 02:33:16 +03:00
AbstractConnection.cpp Nit 2019-12-30 08:16:38 +02:00
AbstractConnection.h Modified "New Client XXX" log print to be more readable 2019-12-29 11:04:47 +02:00
App.cpp Made poll interval be 2 seconds 2019-12-29 00:45:09 +02:00
App.h Made poll interval be 2 seconds 2019-12-29 00:45:09 +02:00
BitcoinD.cpp Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
BitcoinD.h Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
BlockProc.cpp Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
BlockProc.h Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
BlockProcTypes.h Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
BTC.cpp Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
BTC.h Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
BTC_unused.cpp Added LICENSE preamble to all top-level source files 2019-12-28 23:46:05 +02:00
BTC_unused.h Added LICENSE preamble to all top-level source files 2019-12-28 23:46:05 +02:00
Common.cpp Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
Common.h Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
Controller.cpp Fixups to Mempool data structure (maintained by Controller.cpp) 2019-12-31 16:22:52 +02:00
Controller.h More efficiencies added to mempool synch, plus ENABLED NOTIFICATIONS 2019-12-31 13:14:27 +02:00
CostCache.h Added move-ctor insert to CostCache.h 2019-12-29 16:59:32 +02:00
Fulcrum.pro WIP 2019-12-29 22:57:04 +02:00
LICENSE.txt Misc odds and ends 2019-12-28 23:26:16 +02:00
Logger.cpp Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
Logger.h Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
main.cpp Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
Mempool.h Fixups to Mempool data structure (maintained by Controller.cpp) 2019-12-31 16:22:52 +02:00
Merkle.cpp Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
Merkle.h Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
Mgr.cpp Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
Mgr.h Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
Mixins.cpp fixed a typo 2019-12-29 00:47:29 +02:00
Mixins.h WIP 2019-12-29 22:57:04 +02:00
Options.cpp Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
Options.h Made poll interval be 2 seconds 2019-12-29 00:45:09 +02:00
README.md Nits to README.md 2019-05-01 19:50:56 +03:00
RecordFile.cpp Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
RecordFile.h Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
register_MetaTypes.cpp Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
resources.qrc Got rid of more ShuffleUp stuff, added CLI args 2019-11-07 23:55:13 +02:00
RPC.cpp Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
RPC.h Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
Servers.cpp Fixups to Mempool data structure (maintained by Controller.cpp) 2019-12-31 16:22:52 +02:00
Servers.h comment nit 2019-12-31 17:26:08 +02:00
SrvMgr.cpp Fixed crash bug in SubsMgr::removeZombies + redid ownership of SubsMgr 2019-12-30 10:33:35 +02:00
SrvMgr.h Fixed crash bug in SubsMgr::removeZombies + redid ownership of SubsMgr 2019-12-30 10:33:35 +02:00
Storage.cpp Fixups to Mempool data structure (maintained by Controller.cpp) 2019-12-31 16:22:52 +02:00
Storage.h More efficiencies added to mempool synch, plus ENABLED NOTIFICATIONS 2019-12-31 13:14:27 +02:00
SubsMgr.cpp More efficiencies added to mempool synch, plus ENABLED NOTIFICATIONS 2019-12-31 13:14:27 +02:00
SubsMgr.h More efficiencies added to mempool synch, plus ENABLED NOTIFICATIONS 2019-12-31 13:14:27 +02:00
TXO.h Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
TXO_Compact.h Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
Util.cpp Modified license preamble to say "Bitcoin Cash" instead of "Electron Cash" 2019-12-28 23:48:24 +02:00
Util.h Initial steps in making the mempool use less memory & CPU 2019-12-31 04:17:06 +02:00

Shuffle Up Server

Author: Calin Culianu (<calin.culianu __ at __ gmail . com>)

A fast shuffling server for use with Electron Cash's future "shuffle up" feature (which we haven't properly figured out a name for as yet), written in C++.

Highlights and design goals:

  • Speed: Server is 100% modern C++ code using multi-threaded programming techniques.
  • Flexibility: We want to be able to modify the shuffling logic and add levels of trustlessness as we develop advanced shuffling techniques involving potentially hundreds of inputs. As such, the server's core kernel which handles communication should be decoupled from the other parts that higher level shuffle logic. (So far, so good.)

Requirements

  • Qt Core & Qt Networking libraries 5.11 or above (I use 5.12.3 myself).
  • A modern C++17 compiler. Clang is recommended but G++ also works.
  • No other external dependencies. All crypto functions use code imported from Bitcoin-ABC (such as secp256k1, etc).

How To Compile

It's recommended you use Qt Creator.

  1. Get the latest version of Qt for your platform.
  2. Point the Qt Creator IDE at the ShuffleUpServer.pro file.
  3. Hit Build. It should "just work".

Platform Notes

Big Endian Architectures

The code is more or less configured to assume a "little endian" architecture by default (which is what all Intel x86/x86_64 are). If you're on a big endian machine, on Linux it should just auto-detect that fact. However, on other OS's such as BSD, if you're on a big endian machine, you may need to uncomment this line from the .pro file:

# DEFINES += WORDS_BIGENDIAN

Windows

I couldn't easily get MSVC versions before 2019 to actually accept legal C++17. As such, if you're using Qt Creator on Windows -- it's recommended you select MinGW and/or G++ as the compiler (which comes with the Qt distribution for Windows).

Linux

If you have clang on your system, configure the project to use it as the compiler preferentially over G++. G++ works too, but clang is preferred because reasons.

MacOS

Everything should just work (I use MacOS as my dev machine, so that's why).


F.A.Q.


Q: This thing isn't finished yet!

A: Yes, I know It's still a work in progress.


Q: Why Qt? This isn't a GUI app!

A: Yes, I know. However, Qt is a very decent, cross-platform and fast application framework. You can use its "Core" library for console apps, servers, etc. It has great network support and other basic things a programmer needs to get stuff done.



Donations

Sure! Send BCH here:

bitcoincash:qphax4s4n9h60jxj2fkrjs35w2tvgd4wzvf52cgtzc

bitcoincash:qphax4s4n9h60jxj2fkrjs35w2tvgd4wzvf52cgtzc