Skip to content

Instantly share code, notes, and snippets.

View knocte's full-sized avatar
💭
F#ing

Andres G. Aragoneses knocte

💭
F#ing
View GitHub Profile
@knocte
knocte / gist:b26c03f8c9688932badc6acceaee3cd4
Last active May 11, 2020 02:54
geewallet log when opening a channel with 0382019f91e0d8a5e497849052b5bedad4329bc88ca24b5dbf499c0bea1af5b6c5@172.81.182.181:9735
Available operations:
0: Exit
1: Refresh
3: Send payment
4: Add readonly accounts
5: Sign off payment
6: Broadcast payment
7: Archive account
8: Pair to watch wallet
Andress-MBP:geewalletFRONTEND knocte$ ./scripts/install-rust.sh
+ RUST_VERSION=nightly-2019-11-25
+ curl https://sh.rustup.rs -sSf
+ sh -s -- -y --default-toolchain nightly-2019-11-25
info: downloading installer
info: profile set to 'default'
info: default host triple is x86_64-apple-darwin
info: updating existing rustup installation
"/Users/knocte/Documents/Code/monodevelopCLEAN/main/Main.sln" (default target) (1) ->
"/Users/knocte/Documents/Code/monodevelopCLEAN/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.csproj" (default target) (48) ->
(CoreCompile target) ->
MonoDevelop.Components/ContextMenuExtensionsMac.cs(30,7): error CS0246: The type or namespace name 'CoreGraphics' could not be found (are you missing a using directive or an assembly reference?) [/Users/knocte/Documents/Code/monodevelopCLEAN/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.csproj]
MonoDevelop.Components/ContextMenuExtensionsMac.cs(31,7): error CS0246: The type or namespace name 'Foundation' could not be found (are you missing a using directive or an assembly reference?) [/Users/knocte/Documents/Code/monodevelopCLEAN/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.csproj]
MonoDevelop.Components/Mac/GtkNSViewHost.cs(28,7): error CS0246: The type or namespace name 'CoreGraphics' could not be found (are you missing a using directive or an assembly reference?) [/U
Rebuilding...
Cleaning MonoDevelop.Core (Debug)
Build started 29/8/2019 2:58:53 PM.
__________________________________________________
Project "/Users/knocte/Documents/Code/monodevelopCLEAN/main/src/core/MonoDevelop.Core/MonoDevelop.Core.csproj" (Clean target(s)):
Target CoreClean:
From bbcbfd03efe82fcd6b1c834ce2c1f1699a3a8cf1 Mon Sep 17 00:00:00 2001
From: "Andres G. Aragoneses" <knocte@gmail.com>
Date: Wed, 21 Aug 2019 17:02:03 +0800
Subject: [PATCH] Backend(,Tests),Frontend: merge server cache with server
reference JSON
As a follow-up to previous recent commit [1], this way we only have one
format, moving forward, where we store info about servers (their domain
name, port, etc), and the connection statistics for them.
diff --git a/src/Client/Client.cs b/src/Client/Client.cs
index 5576f12..5b509ac 100644
--- a/src/Client/Client.cs
+++ b/src/Client/Client.cs
@@ -28,19 +28,29 @@ public abstract class Client {
}
private async Task<string> CallImpl (string json) {
using (Socket socket = new Socket (SocketType.Stream, ProtocolType.Tcp)) {
+ socket.SendTimeout = 500;
@knocte
knocte / gist:158c70f9aef9104fd1f7b043c3430e95
Created June 13, 2019 11:27
nuget.client solution being opened in VS4Mac: nuget restore log
Getting restore information for solution /Users/knocte/Documents/Code/NuGet.Client/NuGet.sln
/Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/15.0/bin/NuGet.targets(144,5): error MSB4018: The "WriteRestoreGraphTask" task failed unexpectedly. [/var/folders/yy/r8q924sj6f73mr2h96y4npym0000gn/T/NuGetScratch/uqp9r6qw.6rf.nugetinputs.targets]
/Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/15.0/bin/NuGet.targets(144,5): error MSB4018: NuGet.Frameworks.FrameworkException: Invalid framework identifier ''. [/var/folders/yy/r8q924sj6f73mr2h96y4npym0000gn/T/NuGetScratch/uqp9r6qw.6rf.nugetinputs.targets]
/Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/15.0/bin/NuGet.targets(144,5): error MSB4018: at NuGet.Frameworks.NuGetFramework.GetShortFolderName (NuGet.Frameworks.IFrameworkNameProvider mappings) [0x0006f] in <3b8c22c4c87e44bbb0b201ac24b5d670>:0 [/var/folders/yy/r8q924sj6f73mr2h96y4npym0000gn/T/NuGetScratch/uqp9r6qw.6rf.nugetinputs.targets]
/Library/Framew
iff --git a/src/GWallet.Backend/Ether/EtherServer.fs b/src/GWallet.Backend/Ether/EtherServer.fs
index f7d4c7e..15e9d50 100644
--- a/src/GWallet.Backend/Ether/EtherServer.fs
+++ b/src/GWallet.Backend/Ether/EtherServer.fs
@@ -40,14 +40,6 @@ module Server =
type ServerChannelNegotiationException(message:string, innerException: Exception) =
inherit ConnectionUnsuccessfulException (message, innerException)
- type ServerMisconfiguredException =
- inherit ConnectionUnsuccessfulException
diff --git a/src/GWallet.Backend/FaultTolerantParallelClient.fs b/src/GWallet.Backend/FaultTolerantParallelClient.fs
index 32bbe9b..e1eba49 100644
--- a/src/GWallet.Backend/FaultTolerantParallelClient.fs
+++ b/src/GWallet.Backend/FaultTolerantParallelClient.fs
@@ -150,6 +153,8 @@ type FaultTolerantParallelClient<'K,'E when 'K: equality and 'E :> Exception>(up
let taskToWaitForFirstFinishedTask = Task.WhenAny theTasks
let! fastestTask = Async.AwaitTask taskToWaitForFirstFinishedTask
+ if fastestTask.IsCanceled then
+ return InconsistentOrNotEnoughResults(resultsSoFar,failedFuncsSoFar)
diff --git a/src/GWallet.Backend/FaultTolerantParallelClient.fs b/src/GWallet.Backend/FaultTolerantParallelClient.fs
index 32bbe9b..3769a05 100644
--- a/src/GWallet.Backend/FaultTolerantParallelClient.fs
+++ b/src/GWallet.Backend/FaultTolerantParallelClient.fs
@@ -150,6 +150,8 @@ type FaultTolerantParallelClient<'K,'E when 'K: equality and 'E :> Exception>(up
let taskToWaitForFirstFinishedTask = Task.WhenAny theTasks
let! fastestTask = Async.AwaitTask taskToWaitForFirstFinishedTask
+ if fastestTask.IsCanceled then
+ return failwith "it's canceled, shit"