config: add --piperx #432

Merged
merged 1 commit into from Dec 5, 2016

Projects

None yet

2 participants

@dajohi
Member
dajohi commented Dec 5, 2016

No description provided.

@jrick
Member
jrick commented Dec 5, 2016

Tested and confirmed working on windows:

PS C:\Users\jrick\Documents\pipeipc> gc Program.cs
using System;
using System.Diagnostics;
using System.IO;
using System.IO.Pipes;
using System.Text;
using System.Threading.Tasks;

namespace PipeIPCExample
{
    class Program
    {
        static void Main(string[] args)
        {
            var outPipe = new AnonymousPipeServerStream(PipeDirection.Out, HandleInheritability.Inheritable);
            var procInfo = new ProcessStartInfo
            {
                FileName = "dcrwallet",
                Arguments = $"--testnet -u jrick -P banana --piperx={outPipe.GetClientHandleAsString()}",
            };
            var procHandle = Process.Start(procInfo);

            // Signal shutdown after 3 seconds
            Task.Delay(3000).ContinueWith(_ => outPipe.Dispose());

            procHandle.WaitForExit();
            Console.WriteLine($"Exited with exit code {procHandle.ExitCode}.");
        }
    }
}
PS C:\Users\jrick\Documents\pipeipc> dotnet run
Project pipeipc (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.
17:20:38 2016-12-05 [INF] DCRW: Version 0.6.1-beta
17:20:38 2016-12-05 [INF] RPCS: Listening on 127.0.0.1:19110
17:20:38 2016-12-05 [INF] RPCS: Listening on [::1]:19110
17:20:38 2016-12-05 [INF] DCRW: Attempting RPC client connection to localhost:19109
17:20:38 2016-12-05 [INF] CHNS: Established connection to RPC server localhost:19109
17:20:39 2016-12-05 [INF] WLLT: Opened wallet
17:20:39 2016-12-05 [INF] WLLT: Beginning a rescan of active addresses using the daemon. This may take a while.
17:20:39 2016-12-05 [INF] WLLT: The last used account was 0. Beginning a rescan for all active addresses in known accounts.
17:20:39 2016-12-05 [INF] WLLT: Successfully synchronized the address manager to external address TskjFpmg3vMutY5sbijeDJq45CfrQp9rQqC (key index 5) for account 0
17:20:39 2016-12-05 [INF] WLLT: Successfully synchronized the address manager to internal address TsXXNk7HabxLpRopDrJJ9yuWg76yqippxyy (key index 12) for account 0
17:20:39 2016-12-05 [INF] WLLT: Successfully synchronized wallet accounts to account number 0.
17:20:39 2016-12-05 [INF] WLLT: Loading active addresses and unspent outputs...
17:20:39 2016-12-05 [INF] WLLT: Registering for transaction notifications for 59 address(es) and 4 output(s)
17:20:39 2016-12-05 [INF] WLLT: Fetching headers
17:20:39 2016-12-05 [INF] WLLT: Fetched 0 new header(s)
17:20:39 2016-12-05 [INF] WLLT: Blockchain sync completed, wallet ready for general usage.
17:20:39 2016-12-05 [INF] WLLT: The client has successfully connected to dcrd and is now handling websocket notifications
17:20:41 2016-12-05 [INF] DCRW: Shutdown requested.  Shutting down...
17:20:41 2016-12-05 [WRN] DCRW: Stopping legacy RPC server...
17:20:41 2016-12-05 [INF] DCRW: Legacy RPC server shutdown
17:20:41 2016-12-05 [INF] DCRW: Shutdown complete
Exited with exit code 0.
@jrick
jrick approved these changes Dec 5, 2016 View changes
@jrick jrick merged commit d96136f into decred:master Dec 5, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment