Skip to content

Instantly share code, notes, and snippets.

View MonsieurNicolas's full-sized avatar

MonsieurNicolas MonsieurNicolas

View GitHub Profile

Keybase proof

I hereby claim:

  • I am MonsieurNicolas on github.
  • I am monsieurnicolas (https://keybase.io/monsieurnicolas) on keybase.
  • I have a public key whose fingerprint is FDE4 4461 2CE1 EC20 B1B6 B9BE 6E22 2056 762D AA2C

To claim this, I am signing this object:

@MonsieurNicolas
MonsieurNicolas / release-notes-v9.2.0.md
Last active March 19, 2018 21:16
release notes v9.2.0

Release notes

This release is a stability release, it makes some critical improvements that should help with network and node reliability.

Note:

On first run stellar-core may appear to be stuck for a while (order of a minute) while it garbage collects the bucket files - subsequent starts will not be slow. Last line before that pause will be “Loading last known ledger”.

You may want to disable garbage collection of historical meta data if you need to reingest it in Horizon for example.

@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>

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 / 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
@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 / 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()
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 / 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"
]
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