Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<version> publishes a release; a manual run builds the packages as workflow
Expand All @@ -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<version> (false = artifacts only)'
Expand Down Expand Up @@ -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='

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/robustness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions ci/known-hosts/run-weekly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion client/src/snapshot_export.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions docs/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading
Loading