Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #10266 from EOSIO/release/2.0.x
Browse files Browse the repository at this point in the history
Merge release/2.0.x into master for 2.0.12
  • Loading branch information
heifner committed Apr 19, 2021
2 parents 8f29da1 + 86e4ce6 commit 32a47e3
Show file tree
Hide file tree
Showing 37 changed files with 363 additions and 224 deletions.
4 changes: 4 additions & 0 deletions .cicd/base-images.yml
Expand Up @@ -34,6 +34,8 @@ steps:
no-volume: true
always-pull: true
wait-network: true
pre-execute-sleep: 5
pre-execute-ping-sleep: github.com
vm-registry-tag: "clean::cicd::git-ssh::nas::brew::buildkite-agent"
failover-registries:
- "registry_1"
Expand Down Expand Up @@ -99,6 +101,8 @@ steps:
no-volume: true
always-pull: true
wait-network: true
pre-execute-sleep: 5
pre-execute-ping-sleep: github.com
vm-registry-tag: "clean::cicd::git-ssh::nas::brew::buildkite-agent"
failover-registries:
- "registry_1"
Expand Down
4 changes: 4 additions & 0 deletions .cicd/build-scripts.yml
Expand Up @@ -40,6 +40,8 @@ steps:
modify-ram: 24
always-pull: true
wait-network: true
pre-execute-sleep: 5
pre-execute-ping-sleep: github.com
vm-registry-tag: "clean::cicd::git-ssh::nas::brew::buildkite-agent"
failover-registries:
- "registry_1"
Expand Down Expand Up @@ -113,6 +115,8 @@ steps:
modify-ram: 24
always-pull: true
wait-network: true
pre-execute-sleep: 5
pre-execute-ping-sleep: github.com
vm-registry-tag: "clean::cicd::git-ssh::nas::brew::buildkite-agent"
failover-registries:
- "registry_1"
Expand Down
12 changes: 12 additions & 0 deletions .cicd/generate-pipeline.sh
Expand Up @@ -136,6 +136,8 @@ EOF
always-pull: true
debug: true
wait-network: true
pre-execute-sleep: 5
pre-execute-ping-sleep: github.com
failover-registries:
- 'registry_1'
- 'registry_2'
Expand Down Expand Up @@ -218,6 +220,8 @@ EOF
always-pull: true
debug: true
wait-network: true
pre-execute-sleep: 5
pre-execute-ping-sleep: github.com
failover-registries:
- 'registry_1'
- 'registry_2'
Expand Down Expand Up @@ -274,6 +278,8 @@ EOF
always-pull: true
debug: true
wait-network: true
pre-execute-sleep: 5
pre-execute-ping-sleep: github.com
failover-registries:
- 'registry_1'
- 'registry_2'
Expand Down Expand Up @@ -330,6 +336,8 @@ EOF
always-pull: true
debug: true
wait-network: true
pre-execute-sleep: 5
pre-execute-ping-sleep: github.com
failover-registries:
- 'registry_1'
- 'registry_2'
Expand Down Expand Up @@ -388,6 +396,8 @@ EOF
always-pull: true
debug: true
wait-network: true
pre-execute-sleep: 5
pre-execute-ping-sleep: github.com
failover-registries:
- 'registry_1'
- 'registry_2'
Expand Down Expand Up @@ -568,6 +578,8 @@ cat <<EOF
always-pull: true
debug: true
wait-network: true
pre-execute-sleep: 5
pre-execute-ping-sleep: github.com
failover-registries:
- 'registry_1'
- 'registry_2'
Expand Down
2 changes: 1 addition & 1 deletion .cicd/platforms/pinned/amazon_linux-2-pinned.dockerfile
Expand Up @@ -43,7 +43,7 @@ RUN git clone --depth 1 --single-branch --branch release_80 https://github.com/l
cd / && \
rm -rf /llvm
# build boost
RUN curl -LO https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
RUN curl -LO https://boostorg.jfrog.io/artifactory/main/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
tar -xjf boost_1_71_0.tar.bz2 && \
cd boost_1_71_0 && \
./bootstrap.sh --with-toolset=clang --prefix=/usr/local && \
Expand Down
2 changes: 1 addition & 1 deletion .cicd/platforms/pinned/centos-7.7-pinned.dockerfile
Expand Up @@ -52,7 +52,7 @@ RUN git clone --depth 1 --single-branch --branch release_80 https://github.com/l
cd / && \
rm -rf /llvm
# build boost
RUN curl -LO https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
RUN curl -LO https://boostorg.jfrog.io/artifactory/main/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
tar -xjf boost_1_71_0.tar.bz2 && \
cd boost_1_71_0 && \
./bootstrap.sh --with-toolset=clang --prefix=/usr/local && \
Expand Down
2 changes: 1 addition & 1 deletion .cicd/platforms/pinned/macos-10.14-pinned.sh
Expand Up @@ -53,7 +53,7 @@ rm -rf clang8
# install boost from source
# Boost Fix: eosio/install/bin/../include/c++/v1/stdlib.h:94:15: fatal error: 'stdlib.h' file not found
export SDKROOT="$(xcrun --sdk macosx --show-sdk-path)"
curl -LO https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.bz2
curl -LO https://boostorg.jfrog.io/artifactory/main/release/1.71.0/source/boost_1_71_0.tar.bz2
tar -xjf boost_1_71_0.tar.bz2
cd boost_1_71_0
./bootstrap.sh --prefix=/usr/local
Expand Down
2 changes: 1 addition & 1 deletion .cicd/platforms/pinned/ubuntu-16.04-pinned.dockerfile
Expand Up @@ -44,7 +44,7 @@ RUN git clone --depth 1 --single-branch --branch release_80 https://github.com/l
cd / && \
rm -rf /llvm
# build boost
RUN curl -LO https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
RUN curl -LO https://boostorg.jfrog.io/artifactory/main/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
tar -xjf boost_1_71_0.tar.bz2 && \
cd boost_1_71_0 && \
./bootstrap.sh --with-toolset=clang --prefix=/usr/local && \
Expand Down
2 changes: 1 addition & 1 deletion .cicd/platforms/pinned/ubuntu-18.04-pinned.dockerfile
Expand Up @@ -46,7 +46,7 @@ RUN git clone --depth 1 --single-branch --branch release_80 https://github.com/l
cd / && \
rm -rf /llvm
# build boost
RUN curl -LO https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
RUN curl -LO https://boostorg.jfrog.io/artifactory/main/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
tar -xjf boost_1_71_0.tar.bz2 && \
cd boost_1_71_0 && \
./bootstrap.sh --with-toolset=clang --prefix=/usr/local && \
Expand Down
Expand Up @@ -16,7 +16,7 @@ RUN curl -LO https://cmake.org/files/v3.13/cmake-3.13.2.tar.gz && \
cd / && \
rm -rf cmake-3.13.2.tar.gz /cmake-3.13.2
# build boost
RUN curl -LO https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
RUN curl -LO https://boostorg.jfrog.io/artifactory/main/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
tar -xjf boost_1_71_0.tar.bz2 && \
cd boost_1_71_0 && \
./bootstrap.sh --prefix=/usr/local && \
Expand Down
2 changes: 1 addition & 1 deletion .cicd/platforms/unpinned/centos-7.7-unpinned.dockerfile
Expand Up @@ -21,7 +21,7 @@ RUN curl -LO https://cmake.org/files/v3.13/cmake-3.13.2.tar.gz && \
cd / && \
rm -rf cmake-3.13.2.tar.gz /cmake-3.13.2
# build boost
RUN curl -LO https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
RUN curl -LO https://boostorg.jfrog.io/artifactory/main/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
source /opt/rh/devtoolset-8/enable && \
source /opt/rh/rh-python36/enable && \
tar -xjf boost_1_71_0.tar.bz2 && \
Expand Down
2 changes: 1 addition & 1 deletion .cicd/platforms/unpinned/ubuntu-18.04-unpinned.dockerfile
Expand Up @@ -18,7 +18,7 @@ RUN curl -LO https://cmake.org/files/v3.13/cmake-3.13.2.tar.gz && \
cd / && \
rm -rf cmake-3.13.2.tar.gz /cmake-3.13.2
# build boost
RUN curl -LO https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
RUN curl -LO https://boostorg.jfrog.io/artifactory/main/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
tar -xjf boost_1_71_0.tar.bz2 && \
cd boost_1_71_0 && \
./bootstrap.sh --prefix=/usr/local && \
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -25,7 +25,7 @@ set( CXX_STANDARD_REQUIRED ON)

set(VERSION_MAJOR 2)
set(VERSION_MINOR 0)
set(VERSION_PATCH 11)
set(VERSION_PATCH 12)
#set(VERSION_SUFFIX rc3)

if(VERSION_SUFFIX)
Expand Down
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -74,13 +74,13 @@ brew remove eosio

#### Ubuntu 18.04 Package Install
```sh
wget https://github.com/eosio/eos/releases/download/v2.0.11/eosio_2.0.11-1-ubuntu-18.04_amd64.deb
sudo apt install ./eosio_2.0.11-1-ubuntu-18.04_amd64.deb
wget https://github.com/eosio/eos/releases/download/v2.0.12/eosio_2.0.12-1-ubuntu-18.04_amd64.deb
sudo apt install ./eosio_2.0.12-1-ubuntu-18.04_amd64.deb
```
#### Ubuntu 16.04 Package Install
```sh
wget https://github.com/eosio/eos/releases/download/v2.0.11/eosio_2.0.11-1-ubuntu-16.04_amd64.deb
sudo apt install ./eosio_2.0.11-1-ubuntu-16.04_amd64.deb
wget https://github.com/eosio/eos/releases/download/v2.0.12/eosio_2.0.12-1-ubuntu-16.04_amd64.deb
sudo apt install ./eosio_2.0.12-1-ubuntu-16.04_amd64.deb
```
#### Ubuntu Package Uninstall
```sh
Expand All @@ -91,8 +91,8 @@ sudo apt remove eosio

#### RPM Package Install
```sh
wget https://github.com/eosio/eos/releases/download/v2.0.11/eosio-2.0.11-1.el7.x86_64.rpm
sudo yum install ./eosio-2.0.11-1.el7.x86_64.rpm
wget https://github.com/eosio/eos/releases/download/v2.0.12/eosio-2.0.12-1.el7.x86_64.rpm
sudo yum install ./eosio-2.0.12-1.el7.x86_64.rpm
```
#### RPM Package Uninstall
```sh
Expand Down
12 changes: 6 additions & 6 deletions docs/00_install/00_install-prebuilt-binaries.md
Expand Up @@ -25,13 +25,13 @@ brew remove eosio

#### Ubuntu 18.04 Package Install
```sh
wget https://github.com/eosio/eos/releases/download/v2.0.11/eosio_2.0.11-1-ubuntu-18.04_amd64.deb
sudo apt install ./eosio_2.0.11-1-ubuntu-18.04_amd64.deb
wget https://github.com/eosio/eos/releases/download/v2.0.12/eosio_2.0.12-1-ubuntu-18.04_amd64.deb
sudo apt install ./eosio_2.0.12-1-ubuntu-18.04_amd64.deb
```
#### Ubuntu 16.04 Package Install
```sh
wget https://github.com/eosio/eos/releases/download/v2.0.11/eosio_2.0.11-1-ubuntu-16.04_amd64.deb
sudo apt install ./eosio_2.0.11-1-ubuntu-16.04_amd64.deb
wget https://github.com/eosio/eos/releases/download/v2.0.12/eosio_2.0.12-1-ubuntu-16.04_amd64.deb
sudo apt install ./eosio_2.0.12-1-ubuntu-16.04_amd64.deb
```
#### Ubuntu Package Uninstall
```sh
Expand All @@ -42,8 +42,8 @@ sudo apt remove eosio

#### RPM Package Install
```sh
wget https://github.com/eosio/eos/releases/download/v2.0.11/eosio-2.0.11-1.el7.x86_64.rpm
sudo yum install ./eosio-2.0.11-1.el7.x86_64.rpm
wget https://github.com/eosio/eos/releases/download/v2.0.12/eosio-2.0.12-1.el7.x86_64.rpm
sudo yum install ./eosio-2.0.12-1.el7.x86_64.rpm
```
#### RPM Package Uninstall
```sh
Expand Down
Expand Up @@ -51,7 +51,7 @@ cd $EOSIO_INSTALL_LOCATION && curl -LO https://cmake.org/files/v3.13/cmake-3.13.
make install && \
rm -rf $EOSIO_INSTALL_LOCATION/cmake-3.13.2.tar.gz $EOSIO_INSTALL_LOCATION/cmake-3.13.2
# build boost
cd $EOSIO_INSTALL_LOCATION && curl -LO https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
cd $EOSIO_INSTALL_LOCATION && curl -LO https://boostorg.jfrog.io/artifactory/main/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
tar -xjf boost_1_71_0.tar.bz2 && \
cd boost_1_71_0 && \
./bootstrap.sh --prefix=$EOSIO_INSTALL_LOCATION && \
Expand Down
Expand Up @@ -58,7 +58,7 @@ cd $EOSIO_INSTALL_LOCATION && curl -LO https://cmake.org/files/v3.13/cmake-3.13.
# apply clang patch
cp -f $EOSIO_LOCATION/scripts/clang-devtoolset8-support.patch /tmp/clang-devtoolset8-support.patch
# build boost
cd $EOSIO_INSTALL_LOCATION && curl -LO https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
cd $EOSIO_INSTALL_LOCATION && curl -LO https://boostorg.jfrog.io/artifactory/main/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
source /opt/rh/devtoolset-8/enable && \
tar -xjf boost_1_71_0.tar.bz2 && \
cd boost_1_71_0 && \
Expand Down
Expand Up @@ -51,7 +51,7 @@ cd $EOSIO_INSTALL_LOCATION && curl -LO https://cmake.org/files/v3.13/cmake-3.13.
make install && \
rm -rf $EOSIO_INSTALL_LOCATION/cmake-3.13.2.tar.gz $EOSIO_INSTALL_LOCATION/cmake-3.13.2
# build boost
cd $EOSIO_INSTALL_LOCATION && curl -LO https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
cd $EOSIO_INSTALL_LOCATION && curl -LO https://boostorg.jfrog.io/artifactory/main/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
tar -xjf boost_1_71_0.tar.bz2 && \
cd boost_1_71_0 && \
./bootstrap.sh --prefix=$EOSIO_INSTALL_LOCATION && \
Expand Down
4 changes: 4 additions & 0 deletions docs/30_release-notes/88_v2.0.11.md
@@ -0,0 +1,4 @@
---
link: /30_release-notes/index.md
link_text: v2.0.11
---
39 changes: 38 additions & 1 deletion docs/30_release-notes/89_v2.0.10.md
@@ -1,4 +1,41 @@
---
link: /30_release-notes/index.md
content_title: EOSIO v2.0.10 Release Notes
link_text: v2.0.10
---

This release contains security, stability, and miscellaneous fixes.

## Security bug fixes

### Consolidated Security Fixes for v2.0.10 ([#10091](https://github.com/EOSIO/eos/pull/10091))
- Fix issue with account query db that could result in incorrect data or hung processes
- Implement a Subjective CPU billing system that helps P2P and API nodes better respond to extreme network congestion

Note: These security fixes are relevant to all nodes on EOSIO blockchain networks.

### Notes on Subjective CPU Billing

This system consists of two primary features: a subjective (node local) view of spent CPU resources that are not yet accounted for by the blockchain that allows individual nodes to predict what resource consumption will be and, a subjective penalty system to offset work done in service of erroneous or malicious transactions.

The subjective view of CPU resources will synchronize with the resources present in the blockchain as it discovers the true CPU billing for transactions it has already accounted for.

The system will also accumulate CPU resources spent on failing transactions that will not be relayed in a decaying "subjective penalty" which can protect the individual nodes from abusive actors while remaining tolerant to occasional mistakes.

Subjective billing defaults to active and can be disabled with the `disable-subjective-billing` configuration in `config.ini` or on the command line.

## Stability bug fixes
- ([#9985](https://github.com/EOSIO/eos/pull/9985)) EPE-389 net_plugin stall during head catchup - merge release/2.0.x

## Other changes
- ([#9894](https://github.com/EOSIO/eos/pull/9894)) EOS VM OC: Support LLVM 11 - 2.0
- ([#9911](https://github.com/EOSIO/eos/pull/9911)) add step to the pipeline to build and push to dockerhub on release br…
- ([#9944](https://github.com/EOSIO/eos/pull/9944)) Create eosio-debug-build Pipeline
- ([#9969](https://github.com/EOSIO/eos/pull/9969)) Updating name for the new Docker hub repo EOSIO instead EOS
- ([#9971](https://github.com/EOSIO/eos/pull/9971)) Fix pinned builds error due to obsolete LLVM repo
- ([#10015](https://github.com/EOSIO/eos/pull/10015)) [release 2.0.x] Fix LRT triggers
- ([#10026](https://github.com/EOSIO/eos/pull/10026)) EPE-165: Improve logic for unlinkable blocks while sync'ing
- ([#10047](https://github.com/EOSIO/eos/pull/10047)) Reduce Docker Hub Manifest Queries
- ([#10088](https://github.com/EOSIO/eos/pull/10088)) [release 2.0.x] Specify boost version for unpinned MacOS 10.14 builds

## Documentation
- ([#10011](https://github.com/EOSIO/eos/pull/10011)) [docs] Update various cleos how-tos and fix index - 2.0
36 changes: 8 additions & 28 deletions docs/30_release-notes/index.md
@@ -1,40 +1,20 @@
---
content_title: EOSIO v2.0.10 Release Notes
content_title: EOSIO v2.0.11 Release Notes
---

This release contains security, stability, and miscellaneous fixes.
This release contains security and miscellaneous fixes.

## Security bug fixes

### Consolidated Security Fixes for v2.0.10 ([#10091](https://github.com/EOSIO/eos/pull/10091))
- Fix issue with account query db that could result in incorrect data or hung processes
- Implement a Subjective CPU billing system that helps P2P and API nodes better respond to extreme network congestion
### Consolidated Security Fixes for v2.0.11 ([#10147](https://github.com/EOSIO/eos/pull/10147))
- Fix issue with account query db that could result in incorrect data or hung processes

Note: These security fixes are relevant to all nodes on EOSIO blockchain networks.

### Notes on Subjective CPU Billing

This system consists of two primary features: a subjective (node local) view of spent CPU resources that are not yet accounted for by the blockchain that allows individual nodes to predict what resource consumption will be and, a subjective penalty system to offset work done in service of erroneous or malicious transactions.

The subjective view of CPU resources will synchronize with the resources present in the blockchain as it discovers the true CPU billing for transactions it has already accounted for.

The system will also accumulate CPU resources spent on failing transactions that will not be relayed in a decaying "subjective penalty" which can protect the individual nodes from abusive actors while remaining tolerant to occasional mistakes.

Subjective billing defaults to active and can be disabled with the `disable-subjective-billing` configuration in `config.ini` or on the command line.

## Stability bug fixes
- ([#9985](https://github.com/EOSIO/eos/pull/9985)) EPE-389 net_plugin stall during head catchup - merge release/2.0.x

## Other changes
- ([#9894](https://github.com/EOSIO/eos/pull/9894)) EOS VM OC: Support LLVM 11 - 2.0
- ([#9911](https://github.com/EOSIO/eos/pull/9911)) add step to the pipeline to build and push to dockerhub on release br…
- ([#9944](https://github.com/EOSIO/eos/pull/9944)) Create eosio-debug-build Pipeline
- ([#9969](https://github.com/EOSIO/eos/pull/9969)) Updating name for the new Docker hub repo EOSIO instead EOS
- ([#9971](https://github.com/EOSIO/eos/pull/9971)) Fix pinned builds error due to obsolete LLVM repo
- ([#10015](https://github.com/EOSIO/eos/pull/10015)) [release 2.0.x] Fix LRT triggers
- ([#10026](https://github.com/EOSIO/eos/pull/10026)) EPE-165: Improve logic for unlinkable blocks while sync'ing
- ([#10047](https://github.com/EOSIO/eos/pull/10047)) Reduce Docker Hub Manifest Queries
- ([#10088](https://github.com/EOSIO/eos/pull/10088)) [release 2.0.x] Specify boost version for unpinned MacOS 10.14 builds
- ([#10063](https://github.com/EOSIO/eos/pull/10063)) [release 2.0.x] Fix docker steps on tagged builds.
- ([#10135](https://github.com/EOSIO/eos/pull/10135)) Wlb/adding nodeos param tests 2.0.x
- ([#10133](https://github.com/EOSIO/eos/pull/10133)) fix compiling with boost 1.76; add <set> include in chainbase - 2.0

## Documentation
- ([#10011](https://github.com/EOSIO/eos/pull/10011)) [docs] Update various cleos how-tos and fix index - 2.0
- ([#10094](https://github.com/EOSIO/eos/pull/10094)) [docs] Add EOSIO 2.0.10 release notes to dev portal - 2.0
3 changes: 2 additions & 1 deletion libraries/chain/include/eosio/chain/transaction_context.hpp
Expand Up @@ -97,7 +97,8 @@ namespace eosio { namespace chain {
void record_transaction( const transaction_id_type& id, fc::time_point_sec expire );

void validate_cpu_usage_to_bill( int64_t billed_us, int64_t account_cpu_limit, bool check_minimum )const;
void validate_account_cpu_usage( int64_t billed_us, int64_t account_cpu_limit, bool estimate )const;
void validate_account_cpu_usage( int64_t billed_us, int64_t account_cpu_limit )const;
void validate_account_cpu_usage_estimate( int64_t billed_us, int64_t account_cpu_limit )const;

void disallow_transaction_extensions( const char* error_msg )const;

Expand Down

0 comments on commit 32a47e3

Please sign in to comment.