Skip to content

v2.10.2-pre.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 23 May 04:37
· 36 commits to main since this release
a604fec

What's Changed

✨ Exciting New Features

  • require_spend_subaddress account mode setting by @sugargoat in #989
  • spend_subaddress transaction builder optional param` by @sugargoat in #971
    • Alert: this param was called subaddress_to_spend_from in v2.10.2-pre.1. Update your code!

🐛 Bug Fixes

  • mob-cli fix for passing port of full-service via env variable by @holtzman in #981

Other Changes

New Contributors

Full Changelog: v2.10.1...v2.10.2-pre.2

📦 Downloads

TestNet

MainNet

📝 Memo

Gitbook Documentation

TestNet

The download binaries were built with the following:

CONSENSUS_TEST_SIGSTRUCT_URI=$(curl -s https://enclave-distribution.test.mobilecoin.com/production.json | grep consensus-enclave.css | awk '{print $2}' | tr -d \" | tr -d ,)
curl -O https://enclave-distribution.test.mobilecoin.com/${CONSENSUS_TEST_SIGSTRUCT_URI}

INGEST_TEST_SIGSTRUCT_URI=$(curl -s https://enclave-distribution.test.mobilecoin.com/production.json | grep ingest-enclave.css | awk '{print $2}' | tr -d \" | tr -d ,)
curl -O https://enclave-distribution.test.mobilecoin.com/${INGEST_TEST_SIGSTRUCT_URI}

RUSTFLAGS='-C target-cpu=penryn' SGX_MODE=HW IAS_MODE=PROD INGEST_ENCLAVE_CSS=$(pwd)/ingest-enclave.css CONSENSUS_ENCLAVE_CSS=$(pwd)/consensus-enclave.css cargo build --release

Running from Docker

The full-service docker image is pre-configured to use MobileCoin peer nodes and can be launched with the docker run command specifying only the full-service port to expose to the host. To persist the ledger and wallet databases across invocations, mount a volume into the container as /data. In the example below, the full-service databases are persisted in the working directory's testnet/fs-data subdirectory. full-service command-line arguments can be passed after the image specification to override the defaults built into the image.

docker run -it -p 127.0.0.1:9090:9090 \
    --volume $(pwd)/testnet/fs-data:/data \
    mobilecoin/full-service:v2.10.2-pre.2-testnet

Example local run command

mkdir -p ./testnet-dbs/
RUST_LOG=info,mc_connection=info,mc_ledger_sync=info ./full-service \
        --wallet-db ./testnet-dbs/wallet.db \
        --ledger-db ./testnet-dbs/ledger-db/ \
        --peer mc://node1.test.mobilecoin.com/ \
        --peer mc://node2.test.mobilecoin.com/ \
        --tx-source-url https://s3-us-west-1.amazonaws.com/mobilecoin.chain/node1.test.mobilecoin.com/ \
        --tx-source-url https://s3-us-west-1.amazonaws.com/mobilecoin.chain/node2.test.mobilecoin.com/ \
        --fog-ingest-enclave-css $(pwd)/ingest-enclave.css \
        --chain-id test

MainNet

The download binaries were built with the following:

CONSENSUS_PROD_SIGSTRUCT_URI=$(curl -s https://enclave-distribution.prod.mobilecoin.com/production.json | grep consensus-enclave.css | awk '{print $2}' | tr -d \" | tr -d ,)
curl -O https://enclave-distribution.prod.mobilecoin.com/${CONSENSUS_PROD_SIGSTRUCT_URI}

INGEST_PROD_SIGSTRUCT_URI=$(curl -s https://enclave-distribution.prod.mobilecoin.com/production.json | grep ingest-enclave.css | awk '{print $2}' | tr -d \" | tr -d ,)
curl -O https://enclave-distribution.prod.mobilecoin.com/${INGEST_PROD_SIGSTRUCT_URI}

RUSTFLAGS='-C target-cpu=penryn' SGX_MODE=HW IAS_MODE=PROD INGEST_ENCLAVE_CSS=$(pwd)/ingest-enclave.css CONSENSUS_ENCLAVE_CSS=$(pwd)/consensus-enclave.css cargo build --release

Running from Docker

The full-service docker image is pre-configured to use MobileCoin peer nodes and can be launched with the docker run command specifying only the full-service port to expose to the host. To persist the ledger and wallet databases across invocations, mount a volume into the container as /data. In the example below, the full-service databases are persisted in the working directory's mainnet/fs-data subdirectory. full-service command-line arguments can be passed after the image specification to override the defaults built into the image.

docker run -it -p 127.0.0.1:9090:9090 \
    --volume $(pwd)/mainnet/fs-data:/data \
    mobilecoin/full-service:v2.10.2-pre.2-mainnet

Example run command

Note: You will need the ingest-enclave.css included in the downloaded zip folder.

mkdir -p ./mainnet-dbs/
RUST_LOG=info,mc_connection=info,mc_ledger_sync=info ./full-service \
        --wallet-db ./mainnet-dbs/wallet.db \
        --ledger-db ./mainnet-dbs/ledger-db/ \
        --peer mc://node1.prod.mobilecoinww.com/ \
        --peer mc://node2.prod.mobilecoinww.com/ \
        --tx-source-url https://ledger.mobilecoinww.com/node1.prod.mobilecoinww.com/ \
        --tx-source-url https://ledger.mobilecoinww.com/node2.prod.mobilecoinww.com/ \
        --fog-ingest-enclave-css $(pwd)/ingest-enclave.css \
        --chain-id main