Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V0.16.1 #765

Merged
merged 112 commits into from
Jan 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
31e6189
go back to single dockerfile (#640)
sneak Nov 30, 2016
66e0e8e
added ci build scripts to the repo so they can be version tracked and…
jredbeard Dec 1, 2016
025ddd1
added triggerbuild true/false check for builds
jredbeard Dec 1, 2016
33c83c2
test
jredbeard Dec 1, 2016
a3dd9a3
fixed ciscripts
jredbeard Dec 1, 2016
443a891
fixing slack channel integration and verifying build pending/succeede…
jredbeard Dec 1, 2016
a9df3c2
Merge pull request #643 from steemit/jenkinsci
Dec 1, 2016
33cbb58
Show exception in error message, fix typo #646
theoreticalbts Dec 1, 2016
caa5db3
Merge pull request #647 from steemit/646-read-node-exception
Dec 1, 2016
dcfbf0f
test
jredbeard Dec 1, 2016
8406b67
Print free memory #635
theoreticalbts Nov 29, 2016
e2d4809
Merge pull request #642 from steemit/635-print-free-memory
Dec 2, 2016
2dfbd44
Fix account name index #648
Dec 2, 2016
c4761fe
Bump fc #651
Dec 2, 2016
ec42955
testcommit
jredbeard Dec 5, 2016
4cf920f
Initial changes. Block log has bugs.
Dec 6, 2016
ca922da
Refactor add_index / add_index_plugin to be global methods #663
theoreticalbts Dec 6, 2016
066a2ed
Merge pull request #653 from steemit/651-missing-fc-include
Dec 6, 2016
c651a51
Merge pull request #652 from steemit/648-fix-lookup-accounts
Dec 6, 2016
5be6d61
Merge pull request #664 from steemit/663-move-add-index
Dec 6, 2016
e95bc36
Require peer to report chain_id #612
Dec 6, 2016
b2baa56
Generically unbox pow2 static_variant #666
theoreticalbts Dec 7, 2016
9da59ec
Merge pull request #672 from steemit/666-equihash-pow-sv-generic
Dec 7, 2016
bbb61ba
Merge pull request #670 from steemit/612-network-crosstalk
Dec 7, 2016
51f99ca
When blocks are written to log, they are removed from chain state mem…
Dec 7, 2016
e21d608
Fix broken tests #675
Dec 8, 2016
a65a463
Update GPO properties mirrored in witness_schedule_object #682
theoreticalbts Dec 8, 2016
c34e6e6
Implement signature stripping test #684
theoreticalbts Dec 8, 2016
0dfef17
Save db() in local variable in evaluators
theoreticalbts Dec 8, 2016
b8d7fcd
fixed issue #676 - author_reward permlink is now a string
Netherdrake Dec 7, 2016
4f197c6
Remove deprecated id(db) syntax #687
theoreticalbts Dec 8, 2016
fbbc80e
Explicitly name sentinel value #606
theoreticalbts Dec 9, 2016
f409f75
Removed packed_block #675
Dec 12, 2016
fef44c9
Progress bug fixing
Dec 13, 2016
abd3634
Merge branch '606-sentinel-pos' into 675-reduce-chain-mem
Dec 13, 2016
adae614
Remove packed_block #675
Dec 13, 2016
d4ba29d
Remove block_stats_object #675
Dec 13, 2016
e17ce03
Merge pull request #680 from steemit/676-PR
Dec 13, 2016
bcea250
Merge pull request #685 from steemit/684-test-sig-strip
Dec 13, 2016
600c464
Merge pull request #686 from steemit/682-update-wso-fields
Dec 13, 2016
dea5268
Merge pull request #688 from steemit/687-deprecate-operator
Dec 14, 2016
da2e0f7
Merge pull request #679 from steemit/675-reduce-chain-mem
Dec 14, 2016
3fe0123
Added tagging for latest image on dockerhub if the branchname is name…
jredbeard Dec 14, 2016
fe7084a
Merge pull request #708 from steemit/jenkinsci
Dec 16, 2016
e00d2d8
Adds code coverage to automatic CI
Dec 9, 2016
01e6bee
Use gcovr for code coverage integration with Jenkins
Dec 16, 2016
c01cd25
Filter universal tag from reported tags and then filter by safe for w…
Dec 8, 2016
7b8527e
Update filtering #273
Dec 9, 2016
1ec35ca
Revert automatic filtering of down voted content. #673
Dec 15, 2016
71aa2c0
Add get_ops_in_block method to database API
arhag Dec 2, 2016
cf5dfdf
Detect bug when writing to block log
Dec 15, 2016
993c06f
Fix block log error #675
Dec 15, 2016
b948c5a
Progress on bug fix
Dec 16, 2016
551062f
Block num fork resolution when writing to block log #675
Dec 16, 2016
76050f6
Update seednodes.txt (#709)
Xeldal Dec 17, 2016
7471b74
Added seed node (#580)
thebitcoiner Dec 17, 2016
f4c6273
Remove obsolete blockchain startup message #711
theoreticalbts Dec 19, 2016
66780a9
Set LANG as Docker ENV and remove specific reference to Jenkins in co…
Dec 19, 2016
93bbded
Add pkg-config to Dockerfile, docs #715
theoreticalbts Dec 19, 2016
19c266e
Replace switch(which()) with visitor #702
theoreticalbts Dec 14, 2016
a42bf34
Log hardforks for testnet nodes #710
theoreticalbts Dec 15, 2016
b427211
Refer to block as a pointer. More defensive coding.
Dec 19, 2016
7acc8e5
Merge pull request #712 from steemit/675-reduce-chain-mem
Dec 19, 2016
a1990ca
Merge pull request #718 from steemit/711-obsolete-startup-message
Dec 19, 2016
e70b156
Merge pull request #703 from steemit/702-refactor-switch
Dec 19, 2016
22ea72b
Move bandwidth fields from account object into their own objects
Dec 1, 2016
4fc0157
Root post rate limiting now abstract resource type
Dec 5, 2016
559442c
Update tests and deprecate current bandwidth algorithm
Dec 14, 2016
a23e51a
Implement new bandwidth algorithm #563
Dec 14, 2016
52ac1f0
Refactor pow2 required authorities to use visitor #726
theoreticalbts Dec 20, 2016
67519c3
Merge pull request #728 from steemit/726-pow2-visitor
Dec 21, 2016
23609e6
Simplify logging #710
Dec 21, 2016
01027e0
Merge pull request #720 from steemit/715-dep-pkg-config
Dec 21, 2016
37f78ed
Implement tests for some illegal asset strings #102
theoreticalbts Dec 23, 2016
d807d13
Fix handling of illegal values in asset strings #102
theoreticalbts Dec 23, 2016
cf93aaa
Some more defensive FC_ASSERT() #102
theoreticalbts Dec 23, 2016
b03fdf9
Use more efficient check for non-decimal assets #102
theoreticalbts Dec 23, 2016
1dcc9b8
Fixed error in Dockerfile and added line in the buildscript to extrac…
jredbeard Jan 2, 2017
1ba0556
Removed -it flag from docker command because it's not running in a te…
jredbeard Jan 2, 2017
d273dde
Docker doesn't like the --rm flag to remove the container upon run wh…
jredbeard Jan 2, 2017
3365063
cobertura plugin wants cobertura.xml in a path relative to the workspace
jredbeard Jan 2, 2017
77ee892
Add extra assertions to detect a corrupt block log #738 #675
Jan 2, 2017
fb7756c
updated triggerbuild to match what we're using in jenkins for when we…
jredbeard Jan 2, 2017
ecd6449
Exclude tests and fc in code coverage
Jan 3, 2017
4bf5af9
Change directory to exclude
Jan 3, 2017
2b699b1
Try a different option
Jan 3, 2017
b7431a6
Update regex
Jan 3, 2017
888c056
Merge pull request #704 from steemit/20161208-docker-code-coverage
Jan 3, 2017
f595b8f
Fix failure when parsing a string with precision 0.
Jan 3, 2017
ba8e560
Add documentation for confusing test case #102
Jan 3, 2017
d013722
Merge pull request #731 from steemit/102-asset-parsing
Jan 4, 2017
806cd30
Merge pull request #750 from steemit/675-reduce-chain-mem
bytemaster Jan 5, 2017
0dd0578
Merge pull request #721 from steemit/710-testnet-log-hf
bytemaster Jan 5, 2017
003a337
Merge pull request #706 from steemit/649-PR
bytemaster Jan 5, 2017
ab67737
Merge pull request #705 from steemit/673-tags-filtering
bytemaster Jan 5, 2017
9ce63c6
Merge pull request #713 from steemit/563-bandwidth-algorithm
bytemaster Jan 5, 2017
b61ce97
Fix total payout calculations #751
Jan 5, 2017
eac7a9d
Merge pull request #752 from steemit/751-tag-payouts
Jan 5, 2017
2376924
Update plugin library dependencies in newplugin.py #753
theoreticalbts Jan 5, 2017
489c6c4
Bump version to 0.16.1
Jan 5, 2017
f50df04
Bump fc
Jan 5, 2017
f942621
Merge pull request #754 from steemit/753-plugin-dep
Jan 5, 2017
eca2ad5
Merge pull request #755 from steemit/20170105-steem0_16_1
Jan 5, 2017
4ae7075
Refactor comment bandwidth rate limiting to remove possible corner ca…
Jan 6, 2017
99d4ddd
Merge pull request #759 from steemit/20170106-comment-bandwidth-refactor
Jan 6, 2017
0331a80
Quick enable/disable nonce computation for unit tests #760
theoreticalbts Dec 13, 2016
07e5da9
Fix Jenkins return code #762
theoreticalbts Jan 6, 2017
ae55a12
Update nonces for 0.16.1
Jan 9, 2017
514b9f1
Merge commit '0331a80cf46c6d02df0d168cebb93ce1336b9222' into 20170106…
Jan 9, 2017
5cecee5
Merge commit '07e5da91d53e45359a0bc871736babca9ca3ddcc' into 20170106…
Jan 9, 2017
0d258d2
Merge pull request #764 from steemit/20170106-update-test-nonces
bytemaster Jan 9, 2017
89608cf
Merge branch 'stable' into v0.16.1
Jan 9, 2017
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
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ else( WIN32 ) # Apple AND Linux
endif()
endif()

set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG")

# based on http://www.delorie.com/gnu/docs/gdb/gdb_70.html
# uncomment this line to tell GDB about macros (slows compile times)
# set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -gdwarf-2 -g3" )
Expand Down
44 changes: 43 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ FROM phusion/baseimage:0.9.19

#ARG STEEMD_BLOCKCHAIN=https://example.com/steemd-blockchain.tbz2

ENV LANG=en_US.UTF-8

RUN \
apt-get update && \
apt-get install -y \
Expand All @@ -19,14 +21,54 @@ RUN \
libtool \
ncurses-dev \
pbzip2 \
pkg-config \
python3 \
python3-dev \
python3-pip \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
pip3 install gcovr

ADD . /usr/local/src/steem

RUN \
cd /usr/local/src/steem && \
git submodule update --init --recursive && \
mkdir build && \
cd build && \
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_STEEM_TESTNET=ON \
-DLOW_MEMORY_NODE=OFF \
-DCLEAR_VOTES=ON \
.. && \
make -j$(nproc) chain_test && \
./tests/chain_test && \
cd /usr/local/src/steem && \
doxygen && \
programs/build_helpers/check_reflect.py && \
rm -rf /usr/local/src/steem/build

RUN \
cd /usr/local/src/steem && \
git submodule update --init --recursive && \
mkdir build && \
cd build && \
cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DENABLE_COVERAGE_TESTING=ON \
-DBUILD_STEEM_TESTNET=ON \
-DLOW_MEMORY_NODE=OFF \
-DCLEAR_VOTES=ON \
.. && \
make -j$(nproc) chain_test && \
./tests/chain_test && \
mkdir -p /var/cobertura && \
gcovr --object-directory="../" --root=../ --xml-pretty --gcov-exclude=".*tests.*" --gcov-exclude=".*fc.*" --output="/var/cobertura/coverage.xml" && \
cd /usr/local/src/steem && \
rm -rf /usr/local/src/steem/build

RUN \
cd /usr/local/src/steem && \
git submodule update --init --recursive && \
Expand Down
20 changes: 0 additions & 20 deletions Dockerfile.test

This file was deleted.

10 changes: 10 additions & 0 deletions ciscripts/buildfailure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
curl -XPOST -H "Authorization: token $GITHUB_SECRET" https://api.github.com/repos/steemit/steem/statuses/$(git rev-parse HEAD) -d "{
\"state\": \"failure\",
\"target_url\": \"${BUILD_URL}\",
\"description\": \"JenkinsCI reports the build has failed!\",
\"context\": \"jenkins-ci-steemit\"
}"
rm -rf $WORKSPACE/*
# make docker cleanup after itself and delete all exited containers
sudo docker rm -v $(docker ps -a -q -f status=exited) || true
7 changes: 7 additions & 0 deletions ciscripts/buildpending.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
curl -XPOST -H "Authorization: token $GITHUB_SECRET" https://api.github.com/repos/steemit/steem/statuses/$(git rev-parse HEAD) -d "{
\"state\": \"pending\",
\"target_url\": \"${BUILD_URL}\",
\"description\": \"The build is now pending in jenkinsci!\",
\"context\": \"jenkins-ci-steemit\"
}"
11 changes: 11 additions & 0 deletions ciscripts/buildscript.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -e
export IMAGE_NAME="steemit/steem:${GIT_BRANCH#*/}"
if [[ $IMAGE_NAME == "steemit/steem:stable" ]] ; then
IMAGE_NAME="steemit/steem:latest"
fi
sudo docker build -t=$IMAGE_NAME .
sudo docker login --username=$DOCKER_USER --password=$DOCKER_PASS
sudo docker push $IMAGE_NAME
sudo docker run -v /var/jenkins_home:/var/jenkins $IMAGE_NAME cp -r /var/cobertura /var/jenkins
cp -r /var/jenkins_home/cobertura .
11 changes: 11 additions & 0 deletions ciscripts/buildsuccess.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#/bin/bash
#testcommit
curl -XPOST -H "Authorization: token $GITHUB_SECRET" https://api.github.com/repos/steemit/steem/statuses/$(git rev-parse HEAD) -d "{
\"state\": \"success\",
\"target_url\": \"${BUILD_URL}\",
\"description\": \"Jenkins-CI reports build succeeded!!\",
\"context\": \"jenkins-ci-steemit\"
}"
rm -rf $WORKSPACE/*
# make docker cleanup after itself and delete all exited containers
sudo docker rm -v $(docker ps -a -q -f status=exited) || true
8 changes: 8 additions & 0 deletions ciscripts/triggerbuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
sh $WORKSPACE/ciscripts/buildpending.sh
if sh $WORKSPACE/ciscripts/buildscript.sh; then
echo BUILD SUCCESS
else
echo BUILD FAILURE
exit 1
fi
6 changes: 4 additions & 2 deletions doc/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ will build out of the box without further effort:
git \
libssl-dev \
libtool \
make
make \
pkg-config

# Boost packages (also required)
sudo apt-get install -y \
Expand Down Expand Up @@ -92,7 +93,8 @@ Here are the required packages:
git \
libssl-dev \
libtool \
make
make \
pkg-config

# Packages required to build Boost
sudo apt-get install -y \
Expand Down
3 changes: 2 additions & 1 deletion doc/seednodes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ steemd.pharesim.me:2001 # pharesim
seed.jesta.us:2001 # jesta
212.117.213.186:2016 # liondani
anyx.co:2001 # anyx
45.55.217.111:12150 # xeldal
seed.xeldal.com:12150 # xeldal
seed.steemnodes.com:2001 # wackou
steem.clawmap.com:2001 # steempty
gtg.steem.house:2001 # gtg
Expand All @@ -26,6 +26,7 @@ steem.global:2001 # klye
seed.royaltiffany.me:2001 # royaltiffany
129.232.223.74:2001 # thecryptodrive
steem-id.altexplorer.xyz:2001 # steem-id
seed.bitcoiner.me:2001 # bitcoiner
52.26.78.244:2001 # ?
52.37.169.52:2001 # ?
52.38.66.234:2001 # ?
Expand Down
8 changes: 4 additions & 4 deletions libraries/app/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ namespace detail {
}
catch( fc::exception& e )
{
wlog( "Error conencting to remote RPC, network api forwarding disabled.", ("e", e.to_detail_string()) );
wlog( "Error connecting to remote RPC, network api forwarding disabled. ${e}", ("e", e.to_detail_string()) );
}
}
}
Expand Down Expand Up @@ -523,9 +523,9 @@ namespace detail {

bool is_included_block(const block_id_type& block_id)
{
uint32_t block_num = block_header::num_from_id(block_id);
block_id_type block_id_in_preferred_chain = _chain_db->get_block_id_for_num(block_num);
return block_id == block_id_in_preferred_chain;
uint32_t block_num = block_header::num_from_id(block_id);
block_id_type block_id_in_preferred_chain = _chain_db->get_block_id_for_num(block_num);
return block_id == block_id_in_preferred_chain;
}

/**
Expand Down
Loading