Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port over async RPC calls from Huntercoin, implement "waitforblock" RPC call. #60

Merged
merged 11 commits into from
May 15, 2014

Commits on Mar 22, 2014

  1. Encapsulate rpc server's client stream.

    Add a dummy 'game_waitforblock' method that only sleeps for now, and
    encapsulate the RPC server's client streams into a new class that can be
    used in the future to persist the streams in new threads for
    asynchronous RPC calls.
    
    Conflicts:
    	src/bitcoinrpc.h
    	src/namecoin.cpp
    domob1812 committed Mar 22, 2014
    Configuration menu
    Copy the full SHA
    d692e51 View commit details
    Browse the repository at this point in the history
  2. Implement async RPC calls.

    Implement async RPC method calls that spawn a new thread waiting to
    finish them.
    
    Conflicts:
    	src/namecoin.cpp
    domob1812 committed Mar 22, 2014
    Configuration menu
    Copy the full SHA
    490b4c1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    59c7c94 View commit details
    Browse the repository at this point in the history
  4. Move check for RPC server shutdown.

    Move the check for RPC server shutdown above accept call, so that it
    does execute when stop() was called.
    domob1812 committed Mar 22, 2014
    Configuration menu
    Copy the full SHA
    e9bc874 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1869ac1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    52e66ea View commit details
    Browse the repository at this point in the history
  7. Add stub for waitforblock async call.

    Add a new "waitforblock" async RPC call, that currently just sleeps for
    some time instead of doing actual things.
    domob1812 committed Mar 22, 2014
    Configuration menu
    Copy the full SHA
    78853c9 View commit details
    Browse the repository at this point in the history
  8. Implement waitforblock RPC call.

    Implement the body of the waitforblock RPC call, but the condition
    variable introduced is not yet notified when new blocks actually arrive.
    domob1812 committed Mar 22, 2014
    Configuration menu
    Copy the full SHA
    9c8b949 View commit details
    Browse the repository at this point in the history
  9. Actually notify threads waiting on new blocks.

    When a new block has finished processing, notify all threads waiting on
    the condition variable about it so that waitforblock now fully works.
    domob1812 committed Mar 22, 2014
    Configuration menu
    Copy the full SHA
    90f4466 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2014

  1. Configuration menu
    Copy the full SHA
    dd99d66 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2014

  1. Configuration menu
    Copy the full SHA
    70160aa View commit details
    Browse the repository at this point in the history