diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c16baa07e..8c0a9979a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: Release # Ready-to-run mainnet packages of the community node, one for full and pruned storage: config.ini # runs a full node (as the official release), config.pruned.ini a pruned one on LMDB. Each holds the node -# built here, the contract executor of an EnzinoBB/contract-executor release, the JDK the official +# built here, the contract executor of an CreditsCommunity/contract-executor release, the JDK the official # release ships, and the official configuration files kept in packaging/mainnet. # # A tag community-v publishes a release; a manual run builds the packages as workflow @@ -21,7 +21,7 @@ on: description: 'Package version, e.g. 4.2.532-community.1' required: true executor_tag: - description: 'Release tag of EnzinoBB/contract-executor holding contract-executor.jar and sc-api-support.jar' + description: 'Release tag of CreditsCommunity/contract-executor holding contract-executor.jar and sc-api-support.jar' required: true publish: description: 'Create the GitHub release community-v (false = artifacts only)' @@ -161,7 +161,7 @@ jobs: run: | mkdir -p executor for jar in contract-executor.jar sc-api-support.jar; do - curl -sSfL -o "executor/$jar" "https://github.com/EnzinoBB/contract-executor/releases/download/${EXECUTOR_TAG}/$jar" + curl -sSfL -o "executor/$jar" "https://github.com/CreditsCommunity/contract-executor/releases/download/${EXECUTOR_TAG}/$jar" done unzip -p executor/contract-executor.jar git.properties | grep -E 'commit.id=|total.commit.count=' @@ -217,7 +217,7 @@ jobs: Community build of the Credits node, protocol version 532, compatible with mainnet release 4.2.532. - node: ${GITHUB_REPOSITORY}@${GITHUB_SHA} - - contract executor: EnzinoBB/contract-executor release ${EXECUTOR_TAG} + - contract executor: CreditsCommunity/contract-executor release ${EXECUTOR_TAG} - JDK: ojdkbuild 11.0.4, the one the official release ships (Linux); Eclipse Temurin 11 (Windows, macOS) One package for full and pruned storage: \`config.ini\` runs a full node, \`config.pruned.ini\` a pruned one on LMDB @@ -266,7 +266,7 @@ jobs: run: | mkdir -p executor for jar in contract-executor.jar sc-api-support.jar; do - curl -sSfL -o "executor/$jar" "https://github.com/EnzinoBB/contract-executor/releases/download/${EXECUTOR_TAG}/$jar" + curl -sSfL -o "executor/$jar" "https://github.com/CreditsCommunity/contract-executor/releases/download/${EXECUTOR_TAG}/$jar" done # the JDK without what the executor never uses (jmods for jlink, the sources) @@ -357,7 +357,7 @@ jobs: env: VERSION: ${{ needs.package.outputs.version }} PUBLISH: ${{ needs.package.outputs.publish }} - IMAGE: ghcr.io/enzinobb/credits-node + IMAGE: ghcr.io/creditscommunity/credits-node steps: - name: Checkout uses: actions/checkout@v4 @@ -388,3 +388,14 @@ jobs: docker tag "$IMAGE:$VERSION" "$IMAGE:latest" docker push "$IMAGE:latest" fi + # the image of the releases before the move to CreditsCommunity, for the nodes that still + # pull it: best effort, the package must give this repository write access + old=ghcr.io/enzinobb/credits-node + docker tag "$IMAGE:$VERSION" "$old:$VERSION" + if docker push "$old:$VERSION"; then + if [ "$GITHUB_EVENT_NAME" = push ]; then + docker tag "$IMAGE:$VERSION" "$old:latest" && docker push "$old:latest" || true + fi + else + echo "::warning::$old not updated: give CreditsCommunity/node write access in the package settings" + fi diff --git a/.github/workflows/robustness.yml b/.github/workflows/robustness.yml index 7615e5abb..d9d13d33d 100644 --- a/.github/workflows/robustness.yml +++ b/.github/workflows/robustness.yml @@ -141,7 +141,7 @@ jobs: git -C node-alt diff --stat fi # the submodules are copied from this run's checkout, which must point to the same commits, - # except p2p: this repository runs its fork (EnzinoBB/p2p, which holds the upstream history), + # except p2p: this repository runs its fork (CreditsCommunity/p2p, which holds the upstream history), # and the node under comparison gets the files of the p2p commit it points to (same submodules) for m in cscrypto p2p third-party/berkeleydb third-party/thrift third-party/thrift-interface-definitions \ third-party/googletest third-party/lmdb third-party/lmdbxx third-party/nameof third-party/rocksdb; do diff --git a/.github/workflows/scale.yml b/.github/workflows/scale.yml index 07b209bae..a6276af17 100644 --- a/.github/workflows/scale.yml +++ b/.github/workflows/scale.yml @@ -184,7 +184,7 @@ jobs: git -C node-alt apply --whitespace=nowarn "$PWD/ci/official/testnet-hooks.patch" git -C node-alt diff --stat # the submodules are copied from this run's checkout, which must point to the same commits, - # except p2p: this repository runs its fork (EnzinoBB/p2p, which holds the upstream history), + # except p2p: this repository runs its fork (CreditsCommunity/p2p, which holds the upstream history), # and the node under comparison gets the files of the p2p commit it points to (same submodules) for m in cscrypto p2p third-party/berkeleydb third-party/thrift third-party/thrift-interface-definitions \ third-party/googletest third-party/lmdb third-party/lmdbxx third-party/nameof third-party/rocksdb; do diff --git a/.github/workflows/testnet.yml b/.github/workflows/testnet.yml index d4a8af486..1d1b0b946 100644 --- a/.github/workflows/testnet.yml +++ b/.github/workflows/testnet.yml @@ -47,7 +47,7 @@ on: description: 'With tokens: the node whose API the token calls go through (e.g. the restarted one; default 1)' default: '1' executor_ref: - description: 'With contracts: branch or commit of EnzinoBB/contract-executor built and run by the even nodes, the odd nodes keep the release executor (empty = all release)' + description: 'With contracts: branch or commit of CreditsCommunity/contract-executor built and run by the even nodes, the odd nodes keep the release executor (empty = all release)' default: '' node_alt_ref: description: 'Branch or commit of this repository built and run by the even nodes, the odd nodes run this run''s node; "official" = the official 4.2.532 node with the CI test-network hooks (the second nightly run uses it; empty = all the same)' @@ -185,7 +185,7 @@ jobs: git -C node-alt diff --stat fi # the submodules are copied from this run's checkout, which must point to the same commits, - # except p2p: this repository runs its fork (EnzinoBB/p2p, which holds the upstream history), + # except p2p: this repository runs its fork (CreditsCommunity/p2p, which holds the upstream history), # and the node under comparison gets the files of the p2p commit it points to (same submodules) for m in cscrypto p2p third-party/berkeleydb third-party/thrift third-party/thrift-interface-definitions \ third-party/googletest third-party/lmdb third-party/lmdbxx third-party/nameof third-party/rocksdb; do @@ -226,13 +226,13 @@ jobs: if: inputs.contracts == '1' uses: ./.github/actions/contract-executor - # mixed executors: the even nodes run an executor built from EnzinoBB/contract-executor, so a + # mixed executors: the even nodes run an executor built from CreditsCommunity/contract-executor, so a # result that differs from the release executor's shows up as a failed contract consensus - name: Checkout contract executor under test if: inputs.contracts == '1' && inputs.executor_ref != '' uses: actions/checkout@v4 with: - repository: EnzinoBB/contract-executor + repository: CreditsCommunity/contract-executor ref: ${{ inputs.executor_ref }} path: ce fetch-depth: 0 # the build reads the commit count the node checks @@ -242,7 +242,7 @@ jobs: run: | git clone -q https://github.com/CREDITSCOM/smart-contract-api.git ce-deps/smart-contract-api git -C ce-deps/smart-contract-api checkout -q 677c567f308972224232023b18de531d22db2b8b - git clone -q -b build/reproducible-1518 https://github.com/EnzinoBB/thrift-api-client.git ce-deps/thrift-api-client + git clone -q -b build/reproducible-1518 https://github.com/CreditsCommunity/thrift-api-client.git ce-deps/thrift-api-client # build 1518 was compiled with JDK 11.0.3, as in the executor's own build workflow - name: Set up Java 11.0.3 diff --git a/.gitmodules b/.gitmodules index ec80a6a89..e5bc36f2f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -24,7 +24,7 @@ url = https://github.com/Neargye/nameof.git [submodule "p2p"] path = p2p - url = https://github.com/EnzinoBB/p2p.git + url = https://github.com/CreditsCommunity/p2p.git [submodule "third-party/rocksdb"] path = third-party/rocksdb url = https://github.com/facebook/rocksdb.git diff --git a/README.md b/README.md index c843e20d8..5bd300224 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ [Guides](https://developers.credits.com/en/Articles/Guides) \| [News](https://credits.com/en/Home/News) -[![Build](https://github.com/EnzinoBB/node/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/EnzinoBB/node/actions/workflows/build.yml) -[![Release](https://img.shields.io/github/v/release/EnzinoBB/node?label=Community%20release&style=plastic)](https://github.com/EnzinoBB/node/releases/latest) +[![Build](https://github.com/CreditsCommunity/node/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/CreditsCommunity/node/actions/workflows/build.yml) +[![Release](https://img.shields.io/github/v/release/CreditsCommunity/node?label=Community%20release&style=plastic)](https://github.com/CreditsCommunity/node/releases/latest) [![AGPL License](https://img.shields.io/github/license/CREDITSCOM/node.svg?color=green&label=License&style=plastic)](LICENSE) [![Twitter](https://img.shields.io/twitter/follow/creditscom.svg?label=Follow&style=social)](https://twitter.com/intent/follow?screen_name=creditscom) # Credits Node (community) @@ -25,7 +25,7 @@ This repository is the community continuation of [CREDITSCOM/node](https://githu | Tokens, the token API and the token tests | [docs/tokens.md](docs/tokens.md) | | Docker (pruned node from a snapshot, or a full node from a snapshot that fetches the older blocks in the background) | [packaging/docker/README.md](packaging/docker/README.md) | | A full node from a snapshot without Docker (backward sync) | [docs/storage.md](docs/storage.md#a-full-node-from-a-snapshot) | -| Packages (Linux x86-64, Windows x64, macOS Apple Silicon; `config.ini` full and `config.pruned.ini` pruned, one package per system) | [Releases](https://github.com/EnzinoBB/node/releases) | +| Packages (Linux x86-64, Windows x64, macOS Apple Silicon; `config.ini` full and `config.pruned.ini` pruned, one package per system) | [Releases](https://github.com/CreditsCommunity/node/releases) | | Guided set-up in every package: pruned or full, database, first start, snapshot sharing, contract executor (`csnode/setup.sh` on Linux and macOS, `csnode/setup.bat` on Windows) | [packaging/setup/](packaging/setup/) | Replacing the official binaries with the community ones, with the official `config.ini`, keeps the same BerkeleyDB database and the same behaviour on the network. The new features (other block databases, pruned storage, conversion) are opt-in. diff --git a/ci/known-hosts/run-weekly.sh b/ci/known-hosts/run-weekly.sh index f2bd1ccc3..4544510b9 100755 --- a/ci/known-hosts/run-weekly.sh +++ b/ci/known-hosts/run-weekly.sh @@ -10,7 +10,7 @@ # snapshot_sources.txt (the serving nodes that answered) go to the same release and pull request. # # Usage: run-weekly.sh -# Env: WORK (default ~/Projects/credits/known-hosts-run), MINUTES (25), REPO (EnzinoBB/node), +# Env: WORK (default ~/Projects/credits/known-hosts-run), MINUTES (25), REPO (CreditsCommunity/node), # CPUS (1.0), MEMORY (3g), PUBLISH (1), SURVEY_SECONDS (600) # Needs: docker, gh (authenticated), python3 with base58 and pynacl. set -euo pipefail @@ -19,7 +19,7 @@ here=$(cd "$(dirname "$0")" && pwd) root=$(cd "$here/../.." && pwd) WORK=${WORK:-$HOME/Projects/credits/known-hosts-run} MINUTES=${MINUTES:-25} -REPO=${REPO:-EnzinoBB/node} +REPO=${REPO:-CreditsCommunity/node} CPUS=${CPUS:-1.0} MEMORY=${MEMORY:-3g} PUBLISH=${PUBLISH:-1} diff --git a/client/src/snapshot_export.hpp b/client/src/snapshot_export.hpp index 165d8c0e5..124acef1d 100644 --- a/client/src/snapshot_export.hpp +++ b/client/src/snapshot_export.hpp @@ -22,6 +22,6 @@ int runImport(const Config& config, const std::string& manifestFile); // download leaves snapshot-download/ so that the next run resumes it. int runDownload(const Config& config, const std::string& url); -inline const char* const kDefaultSnapshotUrl = "https://github.com/EnzinoBB/node/releases/download/pruned-snapshot/snapshot.json"; +inline const char* const kDefaultSnapshotUrl = "https://github.com/CreditsCommunity/node/releases/download/pruned-snapshot/snapshot.json"; } // namespace snapshot_export diff --git a/docs/CHANGES.md b/docs/CHANGES.md index 3ba65e803..6d0061b45 100644 --- a/docs/CHANGES.md +++ b/docs/CHANGES.md @@ -46,6 +46,7 @@ lines under the new release. | #152 | csnode: the backfill checks the signatures of the fetched blocks, and the round confirmations of the stored ones, on verifier threads (`backfill_verify_threads`, default min(4, cores − 1), `0` = as before); the thread that runs consensus only links and stores the blocks, about 0.5 ms a block instead of 2.5 ms on mainnet | | #153 | docs: the README links the guided set-up (`packaging/setup/`, `csnode/setup.sh` / `setup.bat` in every package) | | #154 | packaging: the guided set-up knows the backfill: a full node on lmdb or rocksdb starts from a snapshot by default and is asked whether to fetch the older blocks in the background (`backfill=on/off`, kept when not asked, `backfill_*` keys set by hand kept); a pruned folder can switch to full and fetches the blocks it removed (the set-up used to say a full node from a snapshot holds only the snapshot's blocks and defaulted full nodes to a sync from block 0) | +| #155 | the project moved to the GitHub organisation [CreditsCommunity](https://github.com/CreditsCommunity) (node, p2p, contract-executor, thrift-api-client; the old EnzinoBB addresses redirect): the default snapshot address, the p2p submodule, the workflows, the set-up's executor download, the packages' README and the Docker files use the new addresses; the Docker image is `ghcr.io/creditscommunity/credits-node`, and the release also pushes `ghcr.io/enzinobb/credits-node` for the nodes that still pull it | ## community.15 — 2026-11-01 diff --git a/docs/FEATURES.md b/docs/FEATURES.md index 6ac7cc5ba..1fb36376c 100644 --- a/docs/FEATURES.md +++ b/docs/FEATURES.md @@ -12,41 +12,41 @@ Everything listed here is in release 4.2.532-community.15 or earlier. - **Choice of block database.** BerkeleyDB (the official one), LMDB or RocksDB, set by `[storage] db_backend`. - [#26](https://github.com/EnzinoBB/node/pull/26), [#37](https://github.com/EnzinoBB/node/pull/37), - [#57](https://github.com/EnzinoBB/node/pull/57) + [#26](https://github.com/CreditsCommunity/node/pull/26), [#37](https://github.com/CreditsCommunity/node/pull/37), + [#57](https://github.com/CreditsCommunity/node/pull/57) - **Conversion between databases in place.** An existing database converts to another backend, with a free-space check first; an interrupted conversion resumes. - [#49](https://github.com/EnzinoBB/node/pull/49), [#50](https://github.com/EnzinoBB/node/pull/50), - [#51](https://github.com/EnzinoBB/node/pull/51), [#52](https://github.com/EnzinoBB/node/pull/52), - [#63](https://github.com/EnzinoBB/node/pull/63), [#65](https://github.com/EnzinoBB/node/pull/65), - [#67](https://github.com/EnzinoBB/node/pull/67) + [#49](https://github.com/CreditsCommunity/node/pull/49), [#50](https://github.com/CreditsCommunity/node/pull/50), + [#51](https://github.com/CreditsCommunity/node/pull/51), [#52](https://github.com/CreditsCommunity/node/pull/52), + [#63](https://github.com/CreditsCommunity/node/pull/63), [#65](https://github.com/CreditsCommunity/node/pull/65), + [#67](https://github.com/CreditsCommunity/node/pull/67) - **Pruned nodes.** A node can keep only the recent blocks (a few GB instead of the whole chain) and still take part in the network; it answers block requests for what it keeps. - [#22](https://github.com/EnzinoBB/node/pull/22), [#25](https://github.com/EnzinoBB/node/pull/25), - [#27](https://github.com/EnzinoBB/node/pull/27), [#58](https://github.com/EnzinoBB/node/pull/58), - [#61](https://github.com/EnzinoBB/node/pull/61), [#62](https://github.com/EnzinoBB/node/pull/62) + [#22](https://github.com/CreditsCommunity/node/pull/22), [#25](https://github.com/CreditsCommunity/node/pull/25), + [#27](https://github.com/CreditsCommunity/node/pull/27), [#58](https://github.com/CreditsCommunity/node/pull/58), + [#61](https://github.com/CreditsCommunity/node/pull/61), [#62](https://github.com/CreditsCommunity/node/pull/62) - **No more slow starts after a crash.** The transaction index and the block-hash databases are rebuilt from the stored blocks instead of re-reading the chain from block 0. - [#53](https://github.com/EnzinoBB/node/pull/53), [#54](https://github.com/EnzinoBB/node/pull/54), - [#56](https://github.com/EnzinoBB/node/pull/56) + [#53](https://github.com/CreditsCommunity/node/pull/53), [#54](https://github.com/CreditsCommunity/node/pull/54), + [#56](https://github.com/CreditsCommunity/node/pull/56) - **A full node in minutes, the history in the background.** A full node on lmdb or rocksdb starts from the snapshot and then fetches the older blocks from its neighbours down to block 0, checking each against the hash chain and its signatures; the API serves every block and history as it arrives. Consensus comes first: the backfill gets a bounded share of the processor thread, less while the node is a confidant. A pruned node switched to full fetches what it pruned the same way. - [#122](https://github.com/EnzinoBB/node/pull/122), [#123](https://github.com/EnzinoBB/node/pull/123), [#125](https://github.com/EnzinoBB/node/pull/125), [#129](https://github.com/EnzinoBB/node/pull/129), [#130](https://github.com/EnzinoBB/node/pull/130), [#133](https://github.com/EnzinoBB/node/pull/133), [#140](https://github.com/EnzinoBB/node/pull/140), [#145](https://github.com/EnzinoBB/node/pull/145), [#146](https://github.com/EnzinoBB/node/pull/146), [#147](https://github.com/EnzinoBB/node/pull/147) + [#122](https://github.com/CreditsCommunity/node/pull/122), [#123](https://github.com/CreditsCommunity/node/pull/123), [#125](https://github.com/CreditsCommunity/node/pull/125), [#129](https://github.com/CreditsCommunity/node/pull/129), [#130](https://github.com/CreditsCommunity/node/pull/130), [#133](https://github.com/CreditsCommunity/node/pull/133), [#140](https://github.com/CreditsCommunity/node/pull/140), [#145](https://github.com/CreditsCommunity/node/pull/145), [#146](https://github.com/CreditsCommunity/node/pull/146), [#147](https://github.com/CreditsCommunity/node/pull/147) ## Starting a node in minutes: snapshots - **Snapshots built and restored by the node.** A node packages its latest checkpoint as a signed snapshot (`--export-snapshot`) and restores one into an empty database (`--import-snapshot`). Every file, block signature and the state digest are checked before anything is written. - [#87](https://github.com/EnzinoBB/node/pull/87), [#89](https://github.com/EnzinoBB/node/pull/89), - [#90](https://github.com/EnzinoBB/node/pull/90), [#92](https://github.com/EnzinoBB/node/pull/92) + [#87](https://github.com/CreditsCommunity/node/pull/87), [#89](https://github.com/CreditsCommunity/node/pull/89), + [#90](https://github.com/CreditsCommunity/node/pull/90), [#92](https://github.com/CreditsCommunity/node/pull/92) - **Published snapshot, downloaded on request.** A snapshot of mainnet is published every 12 hours; `--download-snapshot` downloads and restores it. - [#41](https://github.com/EnzinoBB/node/pull/41), [#107](https://github.com/EnzinoBB/node/pull/107) - , [#108](https://github.com/EnzinoBB/node/pull/108) + [#41](https://github.com/CreditsCommunity/node/pull/41), [#107](https://github.com/CreditsCommunity/node/pull/107) + , [#108](https://github.com/CreditsCommunity/node/pull/108) - **Snapshots shared between nodes over p2p.** Community nodes serve snapshots of their checkpoints to their neighbours, within bandwidth limits (halved while they are confidants). A new node with an empty database fetches one from several independent neighbours that agree on @@ -54,26 +54,26 @@ Everything listed here is in release 4.2.532-community.15 or earlier. without agreement it falls back to syncing from block 0. Stress tests with four nodes joining at once, packet loss and a slow confidant kept the block rate and the round time of the serving confidants within a few percent. - [#99](https://github.com/EnzinoBB/node/pull/99), [#100](https://github.com/EnzinoBB/node/pull/100), - [#101](https://github.com/EnzinoBB/node/pull/101), [#102](https://github.com/EnzinoBB/node/pull/102), - [#104](https://github.com/EnzinoBB/node/pull/104), [#105](https://github.com/EnzinoBB/node/pull/105), - [#106](https://github.com/EnzinoBB/node/pull/106), [#110](https://github.com/EnzinoBB/node/pull/110) + [#99](https://github.com/CreditsCommunity/node/pull/99), [#100](https://github.com/CreditsCommunity/node/pull/100), + [#101](https://github.com/CreditsCommunity/node/pull/101), [#102](https://github.com/CreditsCommunity/node/pull/102), + [#104](https://github.com/CreditsCommunity/node/pull/104), [#105](https://github.com/CreditsCommunity/node/pull/105), + [#106](https://github.com/CreditsCommunity/node/pull/106), [#110](https://github.com/CreditsCommunity/node/pull/110) - **A survey of who serves what.** `node --survey-snapshots` asks the neighbours for the snapshots they serve without opening the chain and prints what they declared; a weekly job publishes the result and the list of serving nodes that ships in the packages. - [#116](https://github.com/EnzinoBB/node/pull/116) + [#116](https://github.com/CreditsCommunity/node/pull/116) ## State that can be checked - **Wallet state digest.** A digest of all wallet state, logged every 1000 blocks and saved with every checkpoint, lets different nodes and builds compare their state; a checkpoint whose caches do not match is set aside. - [#14](https://github.com/EnzinoBB/node/pull/14), [#87](https://github.com/EnzinoBB/node/pull/87) + [#14](https://github.com/CreditsCommunity/node/pull/14), [#87](https://github.com/CreditsCommunity/node/pull/87) - **Checked quick starts.** A checkpoint is checked against the chain before it is loaded, one ahead of the stored blocks is set aside instead of stopping the node for good, and governance state and special orders survive a quick start. - [#10](https://github.com/EnzinoBB/node/pull/10), [#17](https://github.com/EnzinoBB/node/pull/17), - [#18](https://github.com/EnzinoBB/node/pull/18), [#60](https://github.com/EnzinoBB/node/pull/60) + [#10](https://github.com/CreditsCommunity/node/pull/10), [#17](https://github.com/CreditsCommunity/node/pull/17), + [#18](https://github.com/CreditsCommunity/node/pull/18), [#60](https://github.com/CreditsCommunity/node/pull/60) ## Smart contracts @@ -81,83 +81,83 @@ Everything listed here is in release 4.2.532-community.15 or earlier. the chain declares from the confidants instead of re-executing contracts whose result is not reproducible (games that read their own balance), and charges contract fees as the live nodes do. An official node in the same situation ends with other balances, or stops at a valid block. - [#83](https://github.com/EnzinoBB/node/pull/83), [#93](https://github.com/EnzinoBB/node/pull/93), - [#94](https://github.com/EnzinoBB/node/pull/94), [#95](https://github.com/EnzinoBB/node/pull/95), - [#96](https://github.com/EnzinoBB/node/pull/96) + [#83](https://github.com/CreditsCommunity/node/pull/83), [#93](https://github.com/CreditsCommunity/node/pull/93), + [#94](https://github.com/CreditsCommunity/node/pull/94), [#95](https://github.com/CreditsCommunity/node/pull/95), + [#96](https://github.com/CreditsCommunity/node/pull/96) - **A dependable contract executor.** Races and lost connections between the node and its executor are fixed, the executor starts as soon as it answers, and several nodes on one machine no longer stop each other's executors. - [#28](https://github.com/EnzinoBB/node/pull/28), [#29](https://github.com/EnzinoBB/node/pull/29), - [#30](https://github.com/EnzinoBB/node/pull/30), [#31](https://github.com/EnzinoBB/node/pull/31), - [#32](https://github.com/EnzinoBB/node/pull/32), [#33](https://github.com/EnzinoBB/node/pull/33), - [#73](https://github.com/EnzinoBB/node/pull/73) + [#28](https://github.com/CreditsCommunity/node/pull/28), [#29](https://github.com/CreditsCommunity/node/pull/29), + [#30](https://github.com/CreditsCommunity/node/pull/30), [#31](https://github.com/CreditsCommunity/node/pull/31), + [#32](https://github.com/CreditsCommunity/node/pull/32), [#33](https://github.com/CreditsCommunity/node/pull/33), + [#73](https://github.com/CreditsCommunity/node/pull/73) - **Contract reads on pruned and restarted nodes.** Getters, deploy lists and transaction lists work on nodes that quick-started or pruned the blocks involved. - [#20](https://github.com/EnzinoBB/node/pull/20), [#46](https://github.com/EnzinoBB/node/pull/46), - [#74](https://github.com/EnzinoBB/node/pull/74) + [#20](https://github.com/CreditsCommunity/node/pull/20), [#46](https://github.com/CreditsCommunity/node/pull/46), + [#74](https://github.com/CreditsCommunity/node/pull/74) - **Tokens in the API.** A token cache that follows every token standard (`[api] tokens_cache=true`), contract results after a quick start, and contract calls that no method matches refused before their fee is paid; a token template and a Python client in `samples/`. - [#126](https://github.com/EnzinoBB/node/pull/126), [#128](https://github.com/EnzinoBB/node/pull/128), [#132](https://github.com/EnzinoBB/node/pull/132), [#134](https://github.com/EnzinoBB/node/pull/134), [#135](https://github.com/EnzinoBB/node/pull/135) + [#126](https://github.com/CreditsCommunity/node/pull/126), [#128](https://github.com/CreditsCommunity/node/pull/128), [#132](https://github.com/CreditsCommunity/node/pull/132), [#134](https://github.com/CreditsCommunity/node/pull/134), [#135](https://github.com/CreditsCommunity/node/pull/135) - **Executor community-2** (build 1555): tokens of the v2 standard are reported as tokens, and contract code that runs past its time limit, or whose caller has gone, is stopped. Contract results are the same as with the official build 1518. - [#137](https://github.com/EnzinoBB/node/pull/137) + [#137](https://github.com/CreditsCommunity/node/pull/137) ## Consensus robustness - **Two blocks of one round.** When packet loss makes the round end with two valid blocks of the same sequence, a community node follows the majority's block instead of staying on a dead branch. - [#79](https://github.com/EnzinoBB/node/pull/79), [#80](https://github.com/EnzinoBB/node/pull/80) + [#79](https://github.com/CreditsCommunity/node/pull/79), [#80](https://github.com/CreditsCommunity/node/pull/80) - **Bootstrap rounds.** Networks with more than 8 initial confidants can start, and a bootstrap table is accepted only when it fits the node's own round. - [#70](https://github.com/EnzinoBB/node/pull/70), [#71](https://github.com/EnzinoBB/node/pull/71) + [#70](https://github.com/CreditsCommunity/node/pull/70), [#71](https://github.com/CreditsCommunity/node/pull/71) - **Rewards and governance.** Mining and staking flags, rewards of uncertain blocks and timed delegations are restored and reverted correctly. - [#8](https://github.com/EnzinoBB/node/pull/8), [#9](https://github.com/EnzinoBB/node/pull/9), - [#11](https://github.com/EnzinoBB/node/pull/11), [#12](https://github.com/EnzinoBB/node/pull/12) + [#8](https://github.com/CreditsCommunity/node/pull/8), [#9](https://github.com/CreditsCommunity/node/pull/9), + [#11](https://github.com/CreditsCommunity/node/pull/11), [#12](https://github.com/CreditsCommunity/node/pull/12) - **Forward sync under special order 35.** A syncing node no longer asks a neighbour for blocks that neighbour would refuse as a duplicate, and asks another one instead: a node syncing among mostly pruned peers could otherwise wait for ever for its first blocks. - [#136](https://github.com/EnzinoBB/node/pull/136) + [#136](https://github.com/CreditsCommunity/node/pull/136) ## Crash and safety fixes Remote crashes and out-of-bounds reads in packet and block parsing, a data race, and failures of the storage engines (a full disk, a failed write) that hung or stopped the node. -[#2](https://github.com/EnzinoBB/node/pull/2), [#4](https://github.com/EnzinoBB/node/pull/4), -[#5](https://github.com/EnzinoBB/node/pull/5), [#6](https://github.com/EnzinoBB/node/pull/6), -[#7](https://github.com/EnzinoBB/node/pull/7), [#47](https://github.com/EnzinoBB/node/pull/47), -[#57](https://github.com/EnzinoBB/node/pull/57), [#59](https://github.com/EnzinoBB/node/pull/59), -[#63](https://github.com/EnzinoBB/node/pull/63) +[#2](https://github.com/CreditsCommunity/node/pull/2), [#4](https://github.com/CreditsCommunity/node/pull/4), +[#5](https://github.com/CreditsCommunity/node/pull/5), [#6](https://github.com/CreditsCommunity/node/pull/6), +[#7](https://github.com/CreditsCommunity/node/pull/7), [#47](https://github.com/CreditsCommunity/node/pull/47), +[#57](https://github.com/CreditsCommunity/node/pull/57), [#59](https://github.com/CreditsCommunity/node/pull/59), +[#63](https://github.com/CreditsCommunity/node/pull/63) Since community.15: packet parsers bounded by the bytes received, a network stop request that no longer stops the node, a utility message obeyed only with the blockchain key's signature, size limits in the p2p layer (a fork of the p2p library), and two races in the cache databases. -[#121](https://github.com/EnzinoBB/node/pull/121), [#124](https://github.com/EnzinoBB/node/pull/124), [#142](https://github.com/EnzinoBB/node/pull/142), [#143](https://github.com/EnzinoBB/node/pull/143), [#144](https://github.com/EnzinoBB/node/pull/144) +[#121](https://github.com/CreditsCommunity/node/pull/121), [#124](https://github.com/CreditsCommunity/node/pull/124), [#142](https://github.com/CreditsCommunity/node/pull/142), [#143](https://github.com/CreditsCommunity/node/pull/143), [#144](https://github.com/CreditsCommunity/node/pull/144) ## Packages and Docker - **Release packages** for Ubuntu 20.04 and later (one package: `config.ini` full, `config.pruned.ini` pruned), for Windows (x64, `.zip`) and for macOS (Apple Silicon), and a verified list of known hosts updated every week. - [#34](https://github.com/EnzinoBB/node/pull/34), [#35](https://github.com/EnzinoBB/node/pull/35), - [#42](https://github.com/EnzinoBB/node/pull/42), [#113](https://github.com/EnzinoBB/node/pull/113) + [#34](https://github.com/CreditsCommunity/node/pull/34), [#35](https://github.com/CreditsCommunity/node/pull/35), + [#42](https://github.com/CreditsCommunity/node/pull/42), [#113](https://github.com/CreditsCommunity/node/pull/113) - **Windows and macOS.** The node builds and passes its tests on Windows (MSVC) and on macOS (Apple Silicon), and a Windows or macOS node loads the checkpoints and snapshots a Linux node wrote and syncs mainnet with the same state digests; CI checks that on mainnet for the three systems before the packages are published. - [#114](https://github.com/EnzinoBB/node/pull/114), [#115](https://github.com/EnzinoBB/node/pull/115) + [#114](https://github.com/CreditsCommunity/node/pull/114), [#115](https://github.com/CreditsCommunity/node/pull/115) - **Docker image.** One command starts a node; the first start of a pruned node restores the published snapshot (or fetches one from its neighbours), the node serves snapshots, and a database conversion is one variable. - [#41](https://github.com/EnzinoBB/node/pull/41), [#51](https://github.com/EnzinoBB/node/pull/51), - [#109](https://github.com/EnzinoBB/node/pull/109) + [#41](https://github.com/CreditsCommunity/node/pull/41), [#51](https://github.com/CreditsCommunity/node/pull/51), + [#109](https://github.com/CreditsCommunity/node/pull/109) - **Drop-in upgrade.** An official node's folder upgrades to the community node and back. - [#43](https://github.com/EnzinoBB/node/pull/43), [#44](https://github.com/EnzinoBB/node/pull/44) + [#43](https://github.com/CreditsCommunity/node/pull/43), [#44](https://github.com/CreditsCommunity/node/pull/44) - **Guided set-up** in every package (`setup.sh`, `setup.bat`): pruned or full, database, how the first start gets the chain, snapshot sharing and the contract executor. - [#131](https://github.com/EnzinoBB/node/pull/131) + [#131](https://github.com/CreditsCommunity/node/pull/131) ## Tested on every change @@ -165,6 +165,6 @@ Unit tests; private networks of 5 to 61 nodes with smart contracts and stake-bas robustness scenarios (crashes, power cuts, full disks, packet loss and corruption, slow nodes, storage conversions, snapshot attacks); and networks where official 4.2.532 nodes run next to community nodes in consensus. -[#15](https://github.com/EnzinoBB/node/pull/15), [#37](https://github.com/EnzinoBB/node/pull/37), -[#39](https://github.com/EnzinoBB/node/pull/39), [#69](https://github.com/EnzinoBB/node/pull/69), -[#72](https://github.com/EnzinoBB/node/pull/72), [#103](https://github.com/EnzinoBB/node/pull/103) +[#15](https://github.com/CreditsCommunity/node/pull/15), [#37](https://github.com/CreditsCommunity/node/pull/37), +[#39](https://github.com/CreditsCommunity/node/pull/39), [#69](https://github.com/CreditsCommunity/node/pull/69), +[#72](https://github.com/CreditsCommunity/node/pull/72), [#103](https://github.com/CreditsCommunity/node/pull/103) diff --git a/docs/differences.md b/docs/differences.md index 19b5f0fa9..049889f3a 100644 --- a/docs/differences.md +++ b/docs/differences.md @@ -202,7 +202,7 @@ consensus rules. region, an empty packet, or a pool whose lengths point past its data. Also fixed: a data race in `LockFreeChanger`. - **A size limit on p2p packets.** The node runs its own fork of the p2p library - ([EnzinoBB/p2p](https://github.com/EnzinoBB/p2p), from the commit the official node uses). The + ([CreditsCommunity/p2p](https://github.com/CreditsCommunity/p2p), from the commit the official node uses). The first packet of a connection (the registration) may announce at most 64 bytes of data, any later packet at most 256 MiB, far above any packet the node sends; above that the connection is closed before anything is allocated, with an error line at most once a minute per address @@ -287,7 +287,7 @@ rounds for both). The executor listens on 127.0.0.1 only. - **Known hosts.** `known_hosts.txt` is refreshed weekly from a verified list of seed nodes. -- **Docker image.** The image is `ghcr.io/enzinobb/credits-node`. By default it runs a pruned +- **Docker image.** The image is `ghcr.io/creditscommunity/credits-node` (until community.15 `ghcr.io/enzinobb/credits-node`, still updated for a while). By default it runs a pruned node that starts from a snapshot of the chain, published every 12 hours, instead of syncing from block 0. The snapshot's checksum and its state digest are verified before use. A full node on lmdb or rocksdb starts from the snapshot too and fetches the older blocks in the background diff --git a/packaging/docker/.env.example b/packaging/docker/.env.example index bbbdd9559..559bd3b5a 100644 --- a/packaging/docker/.env.example +++ b/packaging/docker/.env.example @@ -16,7 +16,7 @@ CREDITS_STORAGE=pruned # latest published snapshot (then the neighbours, then block 0), p2p asks only the neighbours, off # syncs from block 0 CREDITS_SNAPSHOT=github -#CREDITS_SNAPSHOT_URL=https://github.com/EnzinoBB/node/releases/download/pruned-snapshot/snapshot.json +#CREDITS_SNAPSHOT_URL=https://github.com/CreditsCommunity/node/releases/download/pruned-snapshot/snapshot.json # serve this node's snapshots to its neighbours (on, off); written to config.ini on the first start CREDITS_SERVE_SNAPSHOT=on # independent neighbours that must agree on a snapshot (default 2) diff --git a/packaging/docker/Dockerfile b/packaging/docker/Dockerfile index 4ef81a1f6..d0682d710 100644 --- a/packaging/docker/Dockerfile +++ b/packaging/docker/Dockerfile @@ -1,7 +1,7 @@ # Community Credits node. Build context (see build.sh): package/ holds an unpacked release package # (the csnode/ directory: node, executor, JDK, configuration), docker/ holds this directory. FROM ubuntu:24.04 -LABEL org.opencontainers.image.source=https://github.com/EnzinoBB/node \ +LABEL org.opencontainers.image.source=https://github.com/CreditsCommunity/node \ org.opencontainers.image.description="Community Credits node" RUN apt-get update \ diff --git a/packaging/docker/README.md b/packaging/docker/README.md index 86f304184..fd6dc18f4 100644 --- a/packaging/docker/README.md +++ b/packaging/docker/README.md @@ -2,8 +2,8 @@ ```sh mkdir credits && cd credits -curl -fsSLO https://raw.githubusercontent.com/EnzinoBB/node/master/packaging/docker/docker-compose.yml -curl -fsSL -o .env https://raw.githubusercontent.com/EnzinoBB/node/master/packaging/docker/.env.example +curl -fsSLO https://raw.githubusercontent.com/CreditsCommunity/node/master/packaging/docker/docker-compose.yml +curl -fsSL -o .env https://raw.githubusercontent.com/CreditsCommunity/node/master/packaging/docker/.env.example docker compose up -d && docker compose logs -f ``` diff --git a/packaging/docker/docker-compose.yml b/packaging/docker/docker-compose.yml index 1559833d1..42e644dd5 100644 --- a/packaging/docker/docker-compose.yml +++ b/packaging/docker/docker-compose.yml @@ -2,7 +2,7 @@ # Settings: .env (copy .env.example). Data, configuration and keys: ${CREDITS_HOME:-~/.credits}. services: node: - image: ghcr.io/enzinobb/credits-node:${CREDITS_VERSION:-latest} + image: ghcr.io/creditscommunity/credits-node:${CREDITS_VERSION:-latest} container_name: credits-node restart: unless-stopped stop_grace_period: 120s diff --git a/packaging/docker/entrypoint.sh b/packaging/docker/entrypoint.sh index 1e68a7078..0ec7e5ce6 100755 --- a/packaging/docker/entrypoint.sh +++ b/packaging/docker/entrypoint.sh @@ -20,7 +20,7 @@ case "$STORAGE" in pruned) default_backend=lmdb ;; full) default_backend=berkele BACKEND=${CREDITS_DB_BACKEND:-$default_backend} SNAPSHOT=${CREDITS_SNAPSHOT:-github} [ "$SNAPSHOT" != auto ] || SNAPSHOT=github # the value of earlier releases -SNAPSHOT_URL=${CREDITS_SNAPSHOT_URL:-https://github.com/EnzinoBB/node/releases/download/pruned-snapshot/snapshot.json} +SNAPSHOT_URL=${CREDITS_SNAPSHOT_URL:-https://github.com/CreditsCommunity/node/releases/download/pruned-snapshot/snapshot.json} # earlier releases pointed at the format-1 latest.json: the format-2 manifest sits next to it SNAPSHOT_URL=${SNAPSHOT_URL%/latest.json} [[ "$SNAPSHOT_URL" == *.json ]] || SNAPSHOT_URL=$SNAPSHOT_URL/snapshot.json diff --git a/packaging/docker/test/test-entrypoint.sh b/packaging/docker/test/test-entrypoint.sh index 4873032b5..2f3020c87 100755 --- a/packaging/docker/test/test-entrypoint.sh +++ b/packaging/docker/test/test-entrypoint.sh @@ -76,7 +76,7 @@ pass "second start keeps keys and config.ini" # 3. a pruned node's first start downloads the snapshot (github, the default), then starts d=$(newdata 3) out=$(run "$d") -grep -q -- '--download-snapshot https://github.com/EnzinoBB/node/releases/download/pruned-snapshot/snapshot.json' "$d/stub-download" \ +grep -q -- '--download-snapshot https://github.com/CreditsCommunity/node/releases/download/pruned-snapshot/snapshot.json' "$d/stub-download" \ || { echo "$out"; fail "no download on the first start"; } grep -q 'snapshot restored' <<<"$out" || { echo "$out"; fail "download result not logged"; } [ -f "$d/stub-args" ] || fail "node not started after the download" diff --git a/packaging/make-package.sh b/packaging/make-package.sh index cc56a1072..02f9148bb 100755 --- a/packaging/make-package.sh +++ b/packaging/make-package.sh @@ -88,7 +88,7 @@ INI cat > "$dir/README-COMMUNITY.txt" <> "$dir/README-COMMUNITY.txt" <<'EOF' diff --git a/packaging/setup/setup.ps1 b/packaging/setup/setup.ps1 index dc0f55d67..6390b1b27 100644 --- a/packaging/setup/setup.ps1 +++ b/packaging/setup/setup.ps1 @@ -59,7 +59,7 @@ $officialBuild = 1518 $officialUrl = 'https://github.com/CREDITSCOM/node/releases/download/mainnet-4.2.532.0/Ubuntu20_Mainnet-4.2.532.0.tar.gz' $officialShaExecutor = '592510d1586818348c65bea9b443e7f58aa6947113e43aa8906af8426aeef028' $officialShaSupport = '395d9a108a66fe1d92c1d2096a9d11f4c7662b51b47af792db0ff4cc91df9807' -$communityUrl = 'https://github.com/EnzinoBB/contract-executor/releases/latest/download' +$communityUrl = 'https://github.com/CreditsCommunity/contract-executor/releases/latest/download' Add-Type -AssemblyName System.IO.Compression.FileSystem # the build (git commit count) an executor jar reports, 0 when it cannot be read diff --git a/packaging/setup/setup.sh b/packaging/setup/setup.sh index f71ad7860..8caf9aa6d 100755 --- a/packaging/setup/setup.sh +++ b/packaging/setup/setup.sh @@ -72,7 +72,7 @@ official_build=1518 official_url=https://github.com/CREDITSCOM/node/releases/download/mainnet-4.2.532.0/Ubuntu20_Mainnet-4.2.532.0.tar.gz official_sha_executor=592510d1586818348c65bea9b443e7f58aa6947113e43aa8906af8426aeef028 official_sha_support=395d9a108a66fe1d92c1d2096a9d11f4c7662b51b47af792db0ff4cc91df9807 -community_url=https://github.com/EnzinoBB/contract-executor/releases/latest/download +community_url=https://github.com/CreditsCommunity/contract-executor/releases/latest/download # the java of executor_command, to find the JDK's jar tool when neither unzip nor python3 is there executor_java() {