Skip to content

Commit 08dffb6

Browse files
authored
Merge pull request #144 from KitHat/master
Pushed plenum version to align the latest indy-node version
2 parents b7e36cb + 8791d0a commit 08dffb6

9 files changed

Lines changed: 35 additions & 28 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ test_fees:
1414
start:
1515
docker-sync-stack start
1616
deps:
17-
docker exec -u 0 -ti ${dirname:=_token_1} /bin/bash -c 'sed s/msgpack==0.4.6-1build1/python-msgpack==0.4.6/ /usr/local/lib/python3.5/dist-packages/indy_plenum-1.6.50-py3.5.egg-info/requires.txt > /usr/local/lib/python3.5/dist-packages/indy_plenum-1.6.50-py3.5.egg-info/requires.txt'
18-
docker exec -u 0 -ti ${dirname:=_token_1} /bin/bash -c 'sed s/ujson==1.33-1build1/ujson==1.33/ /usr/local/lib/python3.5/dist-packages/indy_plenum-1.6.50-py3.5.egg-info/requires.txt > /usr/local/lib/python3.5/dist-packages/indy_plenum-1.6.50-py3.5.egg-info/requires.txt '
17+
docker exec -u 0 -ti ${dirname:=_token_1} /bin/bash -c 'sed s/msgpack==0.4.6-1build1/python-msgpack==0.4.6/ /usr/local/lib/python3.5/dist-packages/indy_plenum-1.6.51-py3.5.egg-info/requires.txt > /usr/local/lib/python3.5/dist-packages/indy_plenum-1.6.51-py3.5.egg-info/requires.txt'
18+
docker exec -u 0 -ti ${dirname:=_token_1} /bin/bash -c 'sed s/ujson==1.33-1build1/ujson==1.33/ /usr/local/lib/python3.5/dist-packages/indy_plenum-1.6.51-py3.5.egg-info/requires.txt > /usr/local/lib/python3.5/dist-packages/indy_plenum-1.6.51-py3.5.egg-info/requires.txt '
1919
clean:
2020
docker-sync-stack clean
2121

devops/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ifeq ($(SRC_DIR_NAME),sovtoken)
5252
# remove that once sovtoken starts using indy-plenum from stable:
5353
# pypi: indy-plenum
5454
# apt: indy-plenum (stable component)
55-
FPM_P_DEPENDS := indy-plenum(=1.6.50)
55+
FPM_P_DEPENDS := indy-plenum(=1.6.51)
5656
FPM_ARGS := --no-python-dependencies $(FPM_ARGS)
5757
endif
5858

devops/build-scripts/xenial/Pool_Party/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ RUN useradd -m -d /home/indy -s /bin/bash -p $(openssl passwd -1 "token") -u $ui
5151
ARG indy_stream=stable
5252

5353
ARG indy_anoncreds_ver=1.0.11
54-
ARG indy_node_ver=1.6.71
55-
ARG python3_indy_crypto_ver=0.4.1
56-
ARG indy_crypto_ver=0.4.0
57-
ARG indy_plenum_ver=1.6.50
54+
ARG indy_node_ver=1.6.73
55+
ARG python3_indy_crypto_ver=0.4.3
56+
ARG indy_crypto_ver=0.4.3
57+
ARG indy_plenum_ver=1.6.51
5858

5959

6060
ARG sovtoken_pkg_name=sovtoken_0.9.2_amd64.deb

devops/denv/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ RUN apt-get update -y && apt-get install -y \
3939
libsnappy-dev \
4040
# libindy
4141
python3-nacl \
42-
libindy-crypto=0.4.1 \
43-
libindy=1.6.1
42+
libindy-crypto=0.4.3 \
43+
libindy=1.6.5
4444
#//python3-indy-crypto
4545

4646
RUN pip3 install -U \
@@ -49,21 +49,21 @@ RUN pip3 install -U \
4949
setuptools \
5050
pytest \
5151
pytest-xdist \
52-
python3-indy==1.6.1 \
52+
python3-indy==1.6.5 \
5353
mock
5454

5555
RUN useradd -m -d /home/indy -s /bin/bash -p $(openssl passwd -1 "token") -u 1000 indy; usermod -aG sudo indy
5656

5757
WORKDIR /home/indy
5858

5959
# indy-node along with supervisor
60-
ENV INDY_NODE_VERSION ${INDY_NODE_VERSION:-1.6.71}
61-
ARG indy_plenum_ver=1.6.50
60+
ENV INDY_NODE_VERSION ${INDY_NODE_VERSION:-1.6.73}
61+
ARG indy_plenum_ver=1.6.51
6262
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88
6363
RUN echo "deb https://repo.sovrin.org/deb xenial stable" >> /etc/apt/sources.list \
6464
&& apt-get update && apt-get install -y \
6565
supervisor \
66-
python3-indy-crypto=0.4.1 \
66+
python3-indy-crypto=0.4.3 \
6767
indy-plenum=${indy_plenum_ver} \
6868
indy-node=${INDY_NODE_VERSION} \
6969
&& rm -rf /var/lib/apt/lists/*

devops/docker/ci/xenial/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88 \
2424
# TODO: I DO REALLY THINK THAT THIS SHOULD BE CHANGED
2525
RUN add-apt-repository "deb https://repo.sovrin.org/sdk/deb xenial stable" \
2626
&& apt-get update && apt-get install -y \
27-
libindy-crypto=0.4.1 \
28-
libindy=1.6.1 \
27+
libindy-crypto=0.4.3 \
28+
libindy=1.6.5 \
2929
&& rm -rf /var/lib/apt/lists/*
3030

3131
RUN mkdir -p /etc/indy && echo "ENABLED_PLUGINS = ['sovtoken', 'sovtokenfees']" > /etc/indy/indy_config.py \
@@ -43,4 +43,4 @@ RUN if [ "$u_id" != "0" ]; then \
4343
USER $u_id
4444

4545
# TODO CMD ENTRYPOINT ...
46-
ENV CI_ENV_VERSION=0.7.0
46+
ENV CI_ENV_VERSION=0.8.0

devops/vagrant/desktop/scripts/setup.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ sudo apt-get update -y && apt-get install -y \
4747
echo ${CYAN}libindy
4848
sudo apt-get update -y && apt-get install -y \
4949
python3-nacl \
50-
libindy-crypto=0.4.1 \
51-
libindy=1.6.1
50+
libindy-crypto=0.4.3 \
51+
libindy=1.6.5
5252

5353
echo ${CYAN}python
5454
sudo pip3 install -U \
@@ -57,16 +57,16 @@ sudo pip3 install -U \
5757
setuptools \
5858
pytest \
5959
pytest-xdist \
60-
python3-indy==1.6.1 \
60+
python3-indy==1.6.5 \
6161
mock
6262

6363
echo ${CYAN}plenum
6464
echo "deb https://repo.sovrin.org/deb xenial stable" >> /etc/apt/sources.list \
6565
sudo apt-get update && apt-get install -y \
6666
supervisor \
67-
python3-indy-crypto=0.4.1 \
68-
indy-plenum=1.6.50 \
69-
indy-node=1.6.71 \
67+
python3-indy-crypto=0.4.3 \
68+
indy-plenum=1.6.51 \
69+
indy-node=1.6.73 \
7070
&& rm -rf /var/lib/apt/lists/*
7171

7272

sovtoken/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
with open(os.path.join(here, 'sovtoken', '__metadata__.py'), 'r') as f:
2020
exec(f.read(), metadata)
2121

22-
tests_require = ['pytest', 'pytest-xdist', 'mock', 'python3-indy==1.6.1']
22+
tests_require = ['pytest', 'pytest-xdist', 'mock', 'python3-indy==1.6.5']
2323

2424
setup(
2525
name=metadata['__title__'],
@@ -43,7 +43,7 @@
4343
# '>=' here seems makes sense since usually indy-plenum is
4444
# installed as indy-node's dependency and might be with greater
4545
# version (just to not update each time new indy-node is released)
46-
install_requires=['indy-plenum==1.6.50'],
46+
install_requires=['indy-plenum==1.6.51'],
4747
setup_requires=['pytest-runner'],
4848
extras_require={
4949
'test': tests_require,

sovtokenfees/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
with open(os.path.join(here, 'sovtokenfees', '__metadata__.py'), 'r') as f:
1919
exec(f.read(), metadata)
2020

21-
tests_require = ['pytest', 'pytest-xdist', 'python3-indy==1.6.1']
21+
tests_require = ['pytest', 'pytest-xdist', 'python3-indy==1.6.5']
2222

2323
setup(
2424

sovtokenfees/sovtokenfees/test/three_phase_commit_helper.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def create_pre_prepare():
150150
# reqIdr
151151
['B8fV7naUqLATYocqu7yZ8WM9BJDuS24bqbJNvBRsoGg3'],
152152
# discarded
153-
1,
153+
"",
154154
# digest
155155
'ccb7388bc43a1e4669a23863c2b8c43efa183dde25909541b06c0f5196ac4f3b',
156156
# ledger id
@@ -159,6 +159,10 @@ def create_pre_prepare():
159159
'5BU5Rc3sRtTJB6tVprGiTSqiRaa9o6ei11MjH4Vu16ms',
160160
# txn root
161161
'EdxDR8GUeMXGMGtQ6u7pmrUgKfc2XdunZE79Z9REEHg6',
162+
# sub_seq_no
163+
0,
164+
# final
165+
True
162166
]
163167

164168
return PrePrepare(*pre_prepare_args)
@@ -200,11 +204,13 @@ def from_request(req, three_phase_handler):
200204
replica.lastPrePrepareSeqNo + 1,
201205
get_utc_epoch(),
202206
[req.digest],
203-
1,
207+
"",
204208
req.digest,
205209
CONFIG_LEDGER_ID,
206210
replica.stateRootHash(TOKEN_LEDGER_ID),
207211
replica.txnRootHash(TOKEN_LEDGER_ID),
212+
0,
213+
True
208214
]
209215
return PrePrepare(*args)
210216

@@ -236,7 +242,8 @@ def create_ordered(pp):
236242
ord_args = [
237243
pp.instId,
238244
pp.viewNo,
239-
pp.reqIdr[:pp.discarded],
245+
pp.reqIdr,
246+
[],
240247
pp.ppSeqNo,
241248
pp.ppTime,
242249
pp.ledgerId,

0 commit comments

Comments
 (0)