Skip to content

Instantly share code, notes, and snippets.

@AndrejMitrovic
AndrejMitrovic / bash_strict_mode.md
Created May 11, 2023 00:47 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
diff --git a/source/scpp/src/crypto/SHA.cpp b/source/scpp/src/crypto/SHA.cpp
index 47293deec..835d0fa60 100644
--- a/source/scpp/src/crypto/SHA.cpp
+++ b/source/scpp/src/crypto/SHA.cpp
@@ -10,76 +10,76 @@
namespace stellar
{
-// Plain SHA256
-uint256
diff --git a/source/scpp/src/scp/BallotProtocol.cpp b/source/scpp/src/scp/BallotProtocol.cpp
index 6e086c931..9c2f97b92 100644
--- a/source/scpp/src/scp/BallotProtocol.cpp
+++ b/source/scpp/src/scp/BallotProtocol.cpp
@@ -6,7 +6,7 @@
#include "Slot.h"
#include "crypto/Hex.h"
-#include "crypto/SHA.h"
+#include "crypto/Hash.h"
diff --git a/source/geod24/LocalRest.d b/source/geod24/LocalRest.d
index 9c56196..71b85aa 100644
--- a/source/geod24/LocalRest.d
+++ b/source/geod24/LocalRest.d
@@ -246,10 +246,6 @@ private final class LocalScheduler : C.FiberScheduler
/// We need a scheduler to simulate an event loop and to be re-entrant
private LocalScheduler scheduler;
-/// Whether this is the main thread
-private bool is_main_thread;
# Note: in this go-scp implementation the self node is implicitly included in the quorum set
# high-stakes nodes
[High1]
Q = {t = 6, m = [{n = "High3"}, {n = "High5"}, {n = "High7"}, {n = "High2"}, {n = "High8"}, {n = "High4"}, {n = "High6"}]}
[High2]
Q = {t = 6, m = [{n = "High8"}, {n = "High7"}, {n = "High5"}, {n = "High4"}, {n = "High6"}, {n = "High3"}, {n = "High1"}]}
# high-stakes nodes
[Aaron]
Q = {t = 4, m = [{n = "Adam"}, {n = "Alex"}, {n = "Andrew"}, {n = "Anthony"}, {n = "Austin"}, {n = "Ben"}, {n = "Brandon"}]}
[Andrew]
Q = {t = 4, m = [{n = "Alex"}, {n = "Austin"}, {n = "Brandon"}, {n = "Ben"}, {n = "Anthony"}, {n = "Adam"}, {n = "Aaron"}]}
[Adam]
Q = {t = 4, m = [{n = "Brandon"}, {n = "Andrew"}, {n = "Aaron"}, {n = "Alex"}, {n = "Anthony"}, {n = "Austin"}, {n = "Ben"}]}
module get_recursive;
import std.concurrency;
import std.conv;
import std.range;
import std.traits;
private struct GetRecursive (alias getter, T)
{
alias Target = ReturnType!({ T t; return getter(t); });
extern(C++) public int foo(T)(int function(const(T)* value));
extern(C++) public int bar(T)(int function(ref const(T) value));
void main ()
{
foo!int(null);
bar!int(null);
}
template<typename T>
int foo(int (*wrapper)(const T* value))
{
return 0;
}
template<typename T>
int bar(int (*wrapper)(const int& value))
{
return 0;
1-gdb-set target-async on
2-file-exec-and-symbols "/Users/andrejmitrovic/dev/vstest/vstest"
GDB -> App: {"token":1,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[]}}
GDB -> App: {"token":2,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[]}}
3-break-insert -f "/Users/andrejmitrovic/dev/vstest/source/app.d:16"