Giter Club home page Giter Club logo

stub-corda-networkmap's Introduction

Test Stub Corda 3.0 Network Map

A quick simple HTTP-based Corda network map for testing (not meant for production)

Running

gradle run

Building

gradle distZip # (or gradle distTar)

build/distributions will contain a zip file with all dependencies + OS-specific scripts for running

The server can then be run with:

bin/stub-corda-networkmap server <path to yaml config>

Configuration

expiration (in seconds) in the yaml config sets the expiration / cache HTTP header that's then used by Corda nodes how often they'd query the network map.

Additional server properties can be configured using the standard Dropwizard configuration: http://www.dropwizard.io/1.3.0/docs/manual/configuration.html#http

Connecting nodes: adding notary

Each node that will have OU=Notary in its legal name will be automatically added to this test stub network map as a notary. Adding notary nodes changes the network map and normally would require signalling an upgrade, and having node operators manually approve the network map update (via RPC / node shell).

For testing, the temporary procedure is:

  1. run notary nodes with OU=Notary in their legal names and compatibilityZoneURL in their config (e.g. compatibilityZoneURL: "http://localhost:8080").

  2. notary nodes will self-shutdown with an exception: network.NetworkMapUpdater.updateNetworkMapCache - Node is using parameters with hash: ... but network map is advertising: ...

  3. delete network-parameters in the notary nodes' directories and run them again

  4. run all other nodes with the compatibilityZoneURL in their configs

stub-corda-networkmap's People

Contributors

tomtau avatar

Stargazers

Marc Sparrow avatar xiaohuo avatar

Watchers

James Cloos avatar  avatar

stub-corda-networkmap's Issues

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.