GithubHelp home page GithubHelp logo

silky / stellar-core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stellar/stellar-core

0.0 2.0 0.0 6.02 MB

stellar-core is the backbone of the Stellar network. It maintains a local copy of the ledger, communicating and staying in sync with other instances of stellar-core on the network. Optionally, stellar-core can store historical records of the ledger and participate in consensus.

License: Other

Emacs Lisp 0.01% C 49.13% Shell 0.19% C++ 50.47% Logos 0.20%

stellar-core's Introduction

[Build Status]

Note this code is pre-beta.

It is definitely not ready yet for production.

#stellar-core

Stellar-core is a C++ implementation of the Stellar Consensus Protocol that maintains a local copy of the ledger and syncs with other instances of stellar-core on the network. Learn more by reading the overview document.

Documentation

Documentation of the code's layout and abstractions, as well as for the functionality available, can be found in ./docs.

Contributing

We're striving to keep master's history with minimal merge bubbles. To achieve this, we're asking PRs to be submitted rebased on top of master.

To keep your local repository in a "rebased" state, simply run:

git config --global branch.autosetuprebase always changes the default for all future branches

git config --global branch.master.rebase true changes the setting for branch master

note: you may still have to run manual "rebase" commands on your branches to rebase on top of master as you pull changes from upstream.

Code formatting wise, we have a .clang-format config file that you should use on modified files.

Please sign the Contributor License Agreement.

Running tests

run tests with: bin/stellar-core --test

run one test with: bin/stellar-core --test testName

run one test category with: bin/stellar-core --test '[categoryName]'

Categories (or tags) can be combined: AND-ed (by juxtaposition) or OR-ed (by comma-listing).

Tests tagged as [.] or [hide] are not part of the default test test.

Running tests against postgreSQL

First you'll need to create the postgres role "test". If you've just installed postgresSQL with the default init, access the psql client by running psql postgres.

Now create the 'test' role: CREATE ROLE test SUPERUSER

Now, create a few test databases: CREATE DATABASE test WITH owner=test

CREATE DATABASE test0 WITH owner=test

CREATE DATABASE test1 WITH owner=test

CREATE DATABASE test2 WITH owner=test

Running stress tests

We adopt the convention of tagging a stress-test for subsystem foo as [foo-stress][stress][hide].

Then, running

  • stellar-core --test [stress] will run all the stress tests,
  • stellar-core --test [foo-stress] will run the stress tests for subsystem foo alone, and
  • neither stellar-core --test nor stellar-core --test [foo] will run stress tests.

stellar-core's People

Contributors

bekkibolthouse avatar graydon avatar jedmccaleb avatar latobarita avatar matschaffer avatar monsieurnicolas avatar nullstyle avatar thejollyrogers avatar

Watchers

 avatar  avatar

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.