No description
Find a file
2019-12-09 10:04:30 +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 Updated built librocksdb.a for Linux and OSX to latest 2019-11-28 17:58:05 +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 Made app only start listening for client connections after initial sync 2019-11-27 14:07:09 +02:00
AbstractConnection.h wip 2019-11-30 12:29:32 +02:00
App.cpp nit 2019-11-29 17:24:16 +02:00
App.h Added --datadir (-D) command-line option 2019-11-28 23:58:24 +02:00
BitcoinD.cpp wip 2019-11-30 12:29:32 +02:00
BitcoinD.h tweaks 2019-11-30 23:33:30 +02:00
BlockProc.cpp got rid of the ProcessedBlock stuff. The txNum optimization will be opaque to the rest of the app. Rest of app will deal in TxHash natively. 2019-12-07 15:04:45 +02:00
BlockProc.h got rid of the ProcessedBlock stuff. The txNum optimization will be opaque to the rest of the app. Rest of app will deal in TxHash natively. 2019-12-07 15:04:45 +02:00
BlockProcTypes.h wip 2019-12-07 20:34:19 +02:00
BTC.cpp nit: made GetBlockHeaderSize() return int because that's more useful to us 2019-12-03 21:53:32 +02:00
BTC.h Switched to using robin_hood::unordered_flat_map 2019-12-05 13:02:43 +02:00
Common.cpp More nits and cleanup. 2019-11-12 11:29:45 +02:00
Common.h wip 2019-12-04 16:54:40 +02:00
Controller.cpp tweak 2019-12-08 22:48:48 +02:00
Controller.h Regined the backlog avoidance mechanism slightly 2019-12-08 19:45:00 +02:00
Fulcrum.pro Added LRU Cache 2019-12-06 12:45:51 +02:00
Logger.cpp Added process function to controller, and hooks for bitcoind when ready 2019-11-18 08:29:33 +02:00
Logger.h Added process function to controller, and hooks for bitcoind when ready 2019-11-18 08:29:33 +02:00
LRUCache.h Some tweaks for correctness and memory consumption + lru cache perf 2019-12-08 17:21:39 +02:00
main.cpp removed testign 2019-04-25 21:20:45 +03:00
Mgr.cpp Nits: Runtime check that classes deriving from QObjectMixin are ok. 2019-11-17 10:59:50 +02:00
Mgr.h massive refactorings 2019-12-04 20:02:14 +02:00
Mixins.cpp Made app only start listening for client connections after initial sync 2019-11-27 14:07:09 +02:00
Mixins.h wip testing 2019-12-08 19:14:05 +02:00
Options.cpp some nits 2019-11-17 11:10:41 +02:00
Options.h Added --datadir (-D) command-line option 2019-11-28 23:58:24 +02:00
README.md Nits to README.md 2019-05-01 19:50:56 +03:00
register_MetaTypes.cpp nit 2019-11-20 11:29:02 +02:00
resources.qrc Got rid of more ShuffleUp stuff, added CLI args 2019-11-07 23:55:13 +02:00
RPC.cpp nit 2019-12-01 02:50:00 +02:00
RPC.h Performance optimization: Pre-create some static QStrings we use often 2019-11-26 10:05:00 +02:00
Servers.cpp Made app only start listening for client connections after initial sync 2019-11-27 14:07:09 +02:00
Servers.h Added more stats 2019-11-17 12:38:36 +02:00
SrvMgr.cpp Made app only start listening for client connections after initial sync 2019-11-27 14:07:09 +02:00
SrvMgr.h Got rid of SrvMgr newServers signal for now 2019-11-18 00:49:32 +02:00
Storage.cpp addBlock: fix to prevent redundant add/removal of txo's spent in same block 2019-12-09 10:04:30 +02:00
Storage.h tweak 2019-12-09 01:11:34 +02:00
TXO.h Compile fixups for windows mingw++ 2019-12-08 03:39:47 +02:00
Util.cpp storage wip 2019-11-29 14:42:17 +02:00
Util.h wip 2019-12-02 11:42:10 +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