Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View MonsieurNicolas's full-sized avatar

MonsieurNicolas MonsieurNicolas

View GitHub Profile
commit eab485628bee8dedaa234e38e4847c4ac85441cf
Author: MonsieurNicolas <nicolas@stellar.org>
Date: Thu Oct 13 15:28:21 2022 -0700
Visual Studio file updates
diff --git a/Builds/VisualStudio/stellar-core.vcxproj b/Builds/VisualStudio/stellar-core.vcxproj
index b216a7237..25bdb376d 100644
--- a/Builds/VisualStudio/stellar-core.vcxproj
+++ b/Builds/VisualStudio/stellar-core.vcxproj
@MonsieurNicolas
MonsieurNicolas / CAP-0023-utxo.md
Last active February 3, 2020 21:30
utxo based on CAP0023

Current CAP0023 proposal introduces two mechanisms:

  • Allows to represent an arbitrary amount of an asset on the ledger
  • delay creation/authorization of a trustline

Basically, it allows to

  • create an "unspent entry" in the ledger ("initiate a payment") even if the destination doesn't exist or is not authorized yet
  • claim one of those "unspent entries" ("complete a payment") as long as the claimant is authorized to do so

Is there a way to extend this mechanism to support UTXOs (which enables "non fungible tokens" at the same time)? First, we need to define what UTXO means in this context.

2019-10-01T17:35:24.406 GCGB2 [Bucket DEBUG] Adopting bucket file /data/buckets/tmp/bucket-e82657d99b907c62/tmp-bucket-acf83615df636db5.xdr as /data/buckets/bucket-502f10257b66f644eb31235b6
7a695e9c3fcaf3c11758f1c7dcd0ade129eb301.xdr
2019-10-01T17:35:24.407 GCGB2 [Bucket TRACE] Bucket::Bucket() created, file exists : /data/buckets/bucket-502f10257b66f644eb31235b67a695e9c3fcaf3c11758f1c7dcd0ade129eb301.xdr [Bucket.cpp:40
]
2019-10-01T17:35:24.407 GCGB2 [Bucket TRACE] BucketMergeMap retaining mapping for 5ea46c -> 502f10 [BucketMergeMap.cpp:35]
2019-10-01T17:35:24.407 GCGB2 [Bucket TRACE] BucketMergeMap retaining mapping for 998786 -> 502f10 [BucketMergeMap.cpp:35]
2019-10-01T17:35:24.407 GCGB2 [Bucket TRACE] Worker finished merging curr=998786 with snap=5ea46c [FutureBucket.cpp:348]
2019-10-01T17:35:24.415 GCGB2 [Bucket TRACE] 502f10257b66f644eb31235b67a695e9c3fcaf3c11758f1c7dcd0ade129eb301 referenced by bucket list [BucketManagerImpl.cpp:478]
2019-10-01T17:35:24.415 GCGB2 [Bucket TRACE] a90770ec7ccf9c99ff3920
@MonsieurNicolas
MonsieurNicolas / Quorum-2019-Jul-11
Created July 11, 2019 16:46
Transitive quorum output fullkeys 2019-07-11
Content-Length: 39561
Content-Type: application/json
2019-07-10T22:09:20.119 GAJQF [default INFO] {
"critical" : [
[
"GABMKJM6I25XI4K7U6XWMULOUQIQ27BCTMLS6BYYSOWKTBUXVRJSXHYQ",
"GCGB2S2KGYARPVIA37HYZXVRM2YZUEXA6S33ZU5BUDC6THSB62LZSTYH",
"GCM6QMP3DLRPTAZW2UZPCPX2LF3SXWXKPMP3GKFZBDSF3QZGV2G5QSTK"
]
This file has been truncated, but you can view the full file.
2019-01-31T16:05:07.085 GAWEL [Ledger INFO] Close of ledger 22249926 buffered
2019-01-31T16:05:07.821 GAWEL [Bucket INFO] Bucket-apply: committed 503807 entries
2019-01-31T16:05:10.320 GAWEL [Bucket INFO] Bucket-apply: committed 507903 entries
2019-01-31T16:05:13.412 GAWEL [Bucket INFO] Bucket-apply: committed 511999 entries
2019-01-31T16:05:13.605 GAWEL [Herder INFO] Quorum information for 22249925 : {"agree":5,"disagree":0,"fail_at":2,"hash":"ba2fc8","missing":0,"phase":"EXTERNALIZE"}
2019-01-31T16:05:13.635 GAWEL [Ledger INFO] Got consensus: [seq=22249927, prev=ef4b44, tx_count=24, sv: [ txH: 1728a9, ct: 1548947052, upgrades: [ ] ]]
2019-01-31T16:05:13.635 GAWEL [Ledger INFO] Close of ledger 22249927 buffered
2019-01-31T16:05:15.938 GAWEL [Bucket INFO] Bucket-apply: committed 516095 entries
2019-01-31T16:05:18.797 GAWEL [Bucket INFO] Bucket-apply: committed 520191 entries
@MonsieurNicolas
MonsieurNicolas / removeOnWakeUp.patch
Created November 2, 2018 18:08
sketch for how to remove wakeup
diff --git a/src/work/BasicWork.cpp b/src/work/BasicWork.cpp
index f968d383..9ad06553 100644
--- a/src/work/BasicWork.cpp
+++ b/src/work/BasicWork.cpp
@@ -195,11 +195,6 @@ BasicWork::onFailureRaise()
{
}
-void
-BasicWork::onWakeUp()
@MonsieurNicolas
MonsieurNicolas / gap_detected_guide.md
Created September 14, 2018 18:34
recovery from "gap detected" in Horizon

Symptoms

Horizon will give an error similar to

Gap detected in stellar-core database. Please recreate Horizon DB.

Reasons for this error

mismatched core/Horizon configurations

@MonsieurNicolas
MonsieurNicolas / missing-buckets.md
Last active October 13, 2018 20:50
workaround missing buckets

workaround to recover from this

This will require rebuilding the ledger for that validator. You will need enough disk space to download/rebuild that ledger.

prod-example-docs.cfg

# This is an example config for setting up a validator.
# see https://www.stellar.org/developers/stellar-core/learn/admin.html
# for how to properly configure your environment

This release includes changes to the protocol as well as some stability improvements.

As it changes the meta data format, a newer version (XXX or greater) of Horizon is required.

Stability improvements

  • Avoid 100% CPU usage when running certain commands (--newhist for example).
  • Handshake code in overlay had issue that would lead to peers not able to an error “unexpected MAC”.
  • Align publish with network consensus, this avoids potentially publishing bad ledgers in case of corruption.
  • Align catchup with network consensus, this avoids having to rely on timing (which may cause significant delays in catchup).
  • Properly fail work when spawning a process throws an exception.
@MonsieurNicolas
MonsieurNicolas / pr1718-visual-studio.patch
Created July 6, 2018 22:30
updates to fix the visual studio project files
diff --git a/Builds/VisualStudio/stellar-core.vcxproj b/Builds/VisualStudio/stellar-core.vcxproj
index cece6928..fc03f5a2 100644
--- a/Builds/VisualStudio/stellar-core.vcxproj
+++ b/Builds/VisualStudio/stellar-core.vcxproj
@@ -89,6 +89,7 @@
</ControlFlowGuard>
<SmallerTypeCheck>false</SmallerTypeCheck>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
+ <AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
</ClCompile>