From e14cbf3cca421199b65c26d79aae64233d14fe85 Mon Sep 17 00:00:00 2001 From: Greg Szabo Date: Wed, 14 Jun 2017 00:49:46 +0000 Subject: [PATCH] Refactored files going into rpm package --- .../extrafiles/basecoin/50-basecoin.preset | 3 + .../basecoin/basecoin-server.service | 23 +++ .../extrafiles/basecoin/basecoin.service | 29 +++ .../rpmbuild/extrafiles/basecoin/genesis.json | 23 +++ devops/rpmbuild/extrafiles/basecoin/key.json | 12 ++ devops/rpmbuild/extrafiles/basecoin/key2.json | 12 ++ .../basecoin/tendermint-config.toml | 16 ++ .../extrafiles/ethermint/50-ethermint.preset | 3 + .../ethermint/ethermint-server.service | 23 +++ .../extrafiles/ethermint/ethermint.service | 29 +++ .../ethermint/tendermint-config.toml | 16 ++ devops/rpmbuild/spectemplates/basecoin.spec | 178 ++---------------- devops/rpmbuild/spectemplates/ethermint.spec | 99 +--------- 13 files changed, 206 insertions(+), 260 deletions(-) create mode 100644 devops/rpmbuild/extrafiles/basecoin/50-basecoin.preset create mode 100644 devops/rpmbuild/extrafiles/basecoin/basecoin-server.service create mode 100644 devops/rpmbuild/extrafiles/basecoin/basecoin.service create mode 100644 devops/rpmbuild/extrafiles/basecoin/genesis.json create mode 100644 devops/rpmbuild/extrafiles/basecoin/key.json create mode 100644 devops/rpmbuild/extrafiles/basecoin/key2.json create mode 100644 devops/rpmbuild/extrafiles/basecoin/tendermint-config.toml create mode 100644 devops/rpmbuild/extrafiles/ethermint/50-ethermint.preset create mode 100644 devops/rpmbuild/extrafiles/ethermint/ethermint-server.service create mode 100644 devops/rpmbuild/extrafiles/ethermint/ethermint.service create mode 100644 devops/rpmbuild/extrafiles/ethermint/tendermint-config.toml diff --git a/devops/rpmbuild/extrafiles/basecoin/50-basecoin.preset b/devops/rpmbuild/extrafiles/basecoin/50-basecoin.preset new file mode 100644 index 000000000..c97097b13 --- /dev/null +++ b/devops/rpmbuild/extrafiles/basecoin/50-basecoin.preset @@ -0,0 +1,3 @@ +disable basecoin.service +disable basecoin-server.service + diff --git a/devops/rpmbuild/extrafiles/basecoin/basecoin-server.service b/devops/rpmbuild/extrafiles/basecoin/basecoin-server.service new file mode 100644 index 000000000..62392d52a --- /dev/null +++ b/devops/rpmbuild/extrafiles/basecoin/basecoin-server.service @@ -0,0 +1,23 @@ +[Unit] +Description=Basecoin server +Requires=network-online.target +BindTo=basecoin.service +PartOf=basecoin.service +After=network-online.target basecoin.service +PropagatesReloadTo=basecoin.service +ReloadPropagatedFrom=basecoin.service + +[Service] +Environment="TMHOME=/etc/basecoin/tendermint" +Restart=on-failure +User=basecoin +Group=basecoin +PermissionsStartOnly=true +ExecStart=/usr/bin/tendermint node +ExecReload=/bin/kill -HUP $MAINPID +KillSignal=SIGTERM + +[Install] +WantedBy=multi-user.target basecoin.service +Also=basecoin.service + diff --git a/devops/rpmbuild/extrafiles/basecoin/basecoin.service b/devops/rpmbuild/extrafiles/basecoin/basecoin.service new file mode 100644 index 000000000..f806ef481 --- /dev/null +++ b/devops/rpmbuild/extrafiles/basecoin/basecoin.service @@ -0,0 +1,29 @@ +[Unit] +Description=Basecoin +#propagates activation, deactivation and activation fails. +Requires=network-online.target +#propagates activation, deactivation, activation fails and stops +BindTo=basecoin-server.service +#propagates stop and restart (one-way) +PartOf=basecoin-server.service +#order +Before=basecoin-server.service +After=network-online.target +#propagates reload +PropagatesReloadTo=basecoin-server.service +ReloadPropagatedFrom=basecoin-server.service + +[Service] +Environment="BCHOME=/etc/basecoin" +Restart=on-failure +User=basecoin +Group=basecoin +PermissionsStartOnly=true +ExecStart=/usr/bin/basecoin start --without-tendermint +ExecReload=/bin/kill -HUP $MAINPID +KillSignal=SIGTERM + +[Install] +WantedBy=multi-user.target +Also=basecoin-server.service + diff --git a/devops/rpmbuild/extrafiles/basecoin/genesis.json b/devops/rpmbuild/extrafiles/basecoin/genesis.json new file mode 100644 index 000000000..fc998aa6c --- /dev/null +++ b/devops/rpmbuild/extrafiles/basecoin/genesis.json @@ -0,0 +1,23 @@ +{ + "genesis_time": "2017-06-10T03:37:03Z", + "chain_id": "my_chain_id", + "validators": [], + "app_hash": "", + "app_options": { + "accounts": [{ + "name": "dev_money", + "address": "1B1BE55F969F54064628A63B9559E7C21C925165", + "pub_key": { + "type": "ed25519", + "data": "619D3678599971ED29C7529DDD4DA537B97129893598A17C82E3AC9A8BA95279" + }, + "coins": [ + { + "denom": "mycoin", + "amount": 9007199254740992 + } + ] + }] + } +} + diff --git a/devops/rpmbuild/extrafiles/basecoin/key.json b/devops/rpmbuild/extrafiles/basecoin/key.json new file mode 100644 index 000000000..bdefe8fd4 --- /dev/null +++ b/devops/rpmbuild/extrafiles/basecoin/key.json @@ -0,0 +1,12 @@ +{ + "address": "1B1BE55F969F54064628A63B9559E7C21C925165", + "priv_key": { + "type": "ed25519", + "data": "C70D6934B4F55F1B7BC33B56B9CA8A2061384AFC19E91E44B40C4BBA182953D1619D3678599971ED29C7529DDD4DA537B97129893598A17C82E3AC9A8BA95279" + }, + "pub_key": { + "type": "ed25519", + "data": "619D3678599971ED29C7529DDD4DA537B97129893598A17C82E3AC9A8BA95279" + } +} + diff --git a/devops/rpmbuild/extrafiles/basecoin/key2.json b/devops/rpmbuild/extrafiles/basecoin/key2.json new file mode 100644 index 000000000..ddfc6809b --- /dev/null +++ b/devops/rpmbuild/extrafiles/basecoin/key2.json @@ -0,0 +1,12 @@ +{ + "address": "1DA7C74F9C219229FD54CC9F7386D5A3839F0090", + "priv_key": { + "type": "ed25519", + "data": "34BAE9E65CE8245FAD035A0E3EED9401BDE8785FFB3199ACCF8F5B5DDF7486A8352195DA90CB0B90C24295B90AEBA25A5A71BC61BAB2FE2387241D439698B7B8" + }, + "pub_key": { + "type": "ed25519", + "data": "352195DA90CB0B90C24295B90AEBA25A5A71BC61BAB2FE2387241D439698B7B8" + } +} + diff --git a/devops/rpmbuild/extrafiles/basecoin/tendermint-config.toml b/devops/rpmbuild/extrafiles/basecoin/tendermint-config.toml new file mode 100644 index 000000000..3be47dfa5 --- /dev/null +++ b/devops/rpmbuild/extrafiles/basecoin/tendermint-config.toml @@ -0,0 +1,16 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +proxy_app = "tcp://127.0.0.1:36658" +moniker = "" +fast_sync = true +db_backend = "leveldb" +log_level = "debug" + +[rpc] +laddr = "tcp://0.0.0.0:36657" + +[p2p] +laddr = "tcp://0.0.0.0:36656" +seeds = "" + diff --git a/devops/rpmbuild/extrafiles/ethermint/50-ethermint.preset b/devops/rpmbuild/extrafiles/ethermint/50-ethermint.preset new file mode 100644 index 000000000..f181a0bcc --- /dev/null +++ b/devops/rpmbuild/extrafiles/ethermint/50-ethermint.preset @@ -0,0 +1,3 @@ +disable ethermint.service +disable ethermint-server.service + diff --git a/devops/rpmbuild/extrafiles/ethermint/ethermint-server.service b/devops/rpmbuild/extrafiles/ethermint/ethermint-server.service new file mode 100644 index 000000000..78b277e6d --- /dev/null +++ b/devops/rpmbuild/extrafiles/ethermint/ethermint-server.service @@ -0,0 +1,23 @@ +[Unit] +Description=Ethermint server +Requires=network-online.target +BindTo=ethermint.service +PartOf=ethermint.service +After=network-online.target ethermint.service +PropagatesReloadTo=ethermint.service +ReloadPropagatedFrom=ethermint.service + +[Service] +Environment="TMHOME=/etc/ethermint/tendermint" +Restart=on-failure +User=ethermint +Group=ethermint +PermissionsStartOnly=true +ExecStart=/usr/bin/tendermint node +ExecReload=/bin/kill -HUP $MAINPID +KillSignal=SIGTERM + +[Install] +WantedBy=multi-user.target ethermint.service +Also=ethermint.service + diff --git a/devops/rpmbuild/extrafiles/ethermint/ethermint.service b/devops/rpmbuild/extrafiles/ethermint/ethermint.service new file mode 100644 index 000000000..1ec4e4b83 --- /dev/null +++ b/devops/rpmbuild/extrafiles/ethermint/ethermint.service @@ -0,0 +1,29 @@ +[Unit] +Description=Ethermint +#propagates activation, deactivation and activation fails. +Requires=network-online.target +#propagates activation, deactivation, activation fails and stops +BindTo=ethermint-server.service +#propagates stop and restart (one-way) +PartOf=ethermint-server.service +#order +Before=ethermint-server.service +After=network-online.target +#propagates reload +PropagatesReloadTo=ethermint-server.service +ReloadPropagatedFrom=ethermint-server.service + +[Service] +Environment="EMHOME=/etc/ethermint" +Restart=on-failure +User=ethermint +Group=ethermint +PermissionsStartOnly=true +ExecStart=/usr/bin/ethermint --rpc --rpcaddr=0.0.0.0 --ws --wsaddr=0.0.0.0 --rpcapi eth,net,web3,personal,admin +ExecReload=/bin/kill -HUP $MAINPID +KillSignal=SIGTERM + +[Install] +WantedBy=multi-user.target +Also=ethermint-server.service + diff --git a/devops/rpmbuild/extrafiles/ethermint/tendermint-config.toml b/devops/rpmbuild/extrafiles/ethermint/tendermint-config.toml new file mode 100644 index 000000000..9da5d5053 --- /dev/null +++ b/devops/rpmbuild/extrafiles/ethermint/tendermint-config.toml @@ -0,0 +1,16 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +proxy_app = "tcp://127.0.0.1:46658" +moniker = "" +fast_sync = true +db_backend = "leveldb" +log_level = "debug" + +[rpc] +laddr = "tcp://0.0.0.0:46657" + +[p2p] +laddr = "tcp://0.0.0.0:46656" +seeds = "" + diff --git a/devops/rpmbuild/spectemplates/basecoin.spec b/devops/rpmbuild/spectemplates/basecoin.spec index 14965a418..2eb52535c 100644 --- a/devops/rpmbuild/spectemplates/basecoin.spec +++ b/devops/rpmbuild/spectemplates/basecoin.spec @@ -24,178 +24,22 @@ fi %prep test -d "$GOPATH" || echo "GOPATH not set" test -d "$GOPATH" + %{__mkdir_p} %{name}-%{version} cd %{name}-%{version} + %{__mkdir_p} .%{_bindir} .%{_defaultlicensedir}/%{name} .%{_sysconfdir}/%{name}/tendermint .%{_datadir}/%{name} .%{_sysconfdir}/systemd/system .%{_sysconfdir}/systemd/system-preset + %{__cp} $GOPATH/bin/%{name} $GOPATH/bin/basecli .%{_bindir} %{__cp} $GOPATH/src/github.com/tendermint/%{name}/LICENSE .%{_defaultlicensedir}/%{name} -#iso8601date=`date -u +"%Y-%m-%dT%H:%M:%SZ"` -%{__cat} << EOF > .%{_sysconfdir}/%{name}/genesis.json -{ - "genesis_time": "2017-06-10T03:37:03Z", - "chain_id": "my_chain_id", - "validators": [], - "app_hash": "", - "app_options": { - "accounts": [{ - "name": "dev_money", - "address": "1B1BE55F969F54064628A63B9559E7C21C925165", - "pub_key": { - "type": "ed25519", - "data": "619D3678599971ED29C7529DDD4DA537B97129893598A17C82E3AC9A8BA95279" - }, - "coins": [ - { - "denom": "mycoin", - "amount": 9007199254740992 - } - ] - }] - } -} -EOF -%{__cat} << EOF > .%{_sysconfdir}/%{name}/tendermint/config.toml -# This is a TOML config file. -# For more information, see https://github.com/toml-lang/toml - -proxy_app = "tcp://127.0.0.1:36658" -moniker = "" -fast_sync = true -db_backend = "leveldb" -log_level = "debug" - -[rpc] -laddr = "tcp://0.0.0.0:36657" - -[p2p] -laddr = "tcp://0.0.0.0:36656" -seeds = "" -EOF -%{__cat} << EOF > .%{_sysconfdir}/systemd/system/%{name}.service -[Unit] -Description=Basecoin -#propagates activation, deactivation and activation fails. -Requires=network-online.target -#propagates activation, deactivation, activation fails and stops -BindTo=%{name}-server.service -#propagates stop and restart (one-way) -PartOf=%{name}-server.service -#order -Before=%{name}-server.service -After=network-online.target -#propagates reload -PropagatesReloadTo=%{name}-server.service -ReloadPropagatedFrom=%{name}-server.service - -[Service] -Environment="BCHOME=%{_sysconfdir}/%{name}" -Restart=on-failure -User=%{name} -Group=%{name} -PermissionsStartOnly=true -ExecStart=%{_bindir}/%{name} start --without-tendermint -ExecReload=/bin/kill -HUP \$MAINPID -KillSignal=SIGTERM - -[Install] -WantedBy=multi-user.target -Also=%{name}-server.service -EOF -%{__cat} << EOF > .%{_sysconfdir}/systemd/system/%{name}-server.service -[Unit] -Description=Basecoin server -Requires=network-online.target -BindTo=%{name}.service -PartOf=%{name}.service -After=network-online.target %{name}.service -PropagatesReloadTo=%{name}.service -ReloadPropagatedFrom=%{name}.service - -[Service] -Environment="TMHOME=%{_sysconfdir}/%{name}/tendermint" -Restart=on-failure -User=%{name} -Group=%{name} -PermissionsStartOnly=true -ExecStart=%{_bindir}/tendermint node -ExecReload=/bin/kill -HUP \$MAINPID -KillSignal=SIGTERM - -[Install] -WantedBy=multi-user.target %{name}.service -Also=%{name}.service -EOF -%{__cat} << EOF > .%{_sysconfdir}/systemd/system-preset/50-%{name}.preset -disable %{name}.service -disable %{name}-server.service -EOF -%{__cat} << EOF > .%{_datadir}/%{name}/key.json -{ - "address": "1B1BE55F969F54064628A63B9559E7C21C925165", - "priv_key": { - "type": "ed25519", - "data": "C70D6934B4F55F1B7BC33B56B9CA8A2061384AFC19E91E44B40C4BBA182953D1619D3678599971ED29C7529DDD4DA537B97129893598A17C82E3AC9A8BA95279" - }, - "pub_key": { - "type": "ed25519", - "data": "619D3678599971ED29C7529DDD4DA537B97129893598A17C82E3AC9A8BA95279" - } -} -EOF -%{__cat} << EOF > .%{_datadir}/%{name}/key2.json -{ - "address": "1DA7C74F9C219229FD54CC9F7386D5A3839F0090", - "priv_key": { - "type": "ed25519", - "data": "34BAE9E65CE8245FAD035A0E3EED9401BDE8785FFB3199ACCF8F5B5DDF7486A8352195DA90CB0B90C24295B90AEBA25A5A71BC61BAB2FE2387241D439698B7B8" - }, - "pub_key": { - "type": "ed25519", - "data": "352195DA90CB0B90C24295B90AEBA25A5A71BC61BAB2FE2387241D439698B7B8" - } -} -EOF -%{__cat} << EOF > .%{_datadir}/%{name}/tendermint-genesis-validator.json -{ - "genesis_time":"2017-06-10T03:37:03Z", - "chain_id":"my_testchain_id", - "validators": - [ - { - "pub_key":{"type":"ed25519","data":"F651E966D30CEA413839D63D9EC37455DF1FB2DDC409A76555B0CD0B186723E4"}, - "amount":10, - "name":"my_testchain_node" - } - ], - "app_hash":"", - "app_options": {} -} -EOF -%{__cat} << EOF > .%{_datadir}/%{name}/basecoin-genesis-devmoney.json -{ - "genesis_time":"2017-06-10T03:37:03Z", - "chain_id":"my_testchain_id", - "validators": [], - "app_hash":"", - "app_options": { - "accounts": [{ - "pub_key": { - "type": "ed25519", - "data": "619D3678599971ED29C7529DDD4DA537B97129893598A17C82E3AC9A8BA95279" - }, - "coins": [ - { - "denom": "mycoin", - "amount": 9007199254740992 - } - ] - }] - } -} -EOF -%{__cat} << EOF > .%{_datadir}/%{name}/priv_validator-example.json -{"address":"AF5886732763B3A38861FC8D2AA2698A156D28BD","pub_key":{"type":"ed25519","data":"F651E966D30CEA413839D63D9EC37455DF1FB2DDC409A76555B0CD0B186723E4"},"last_height":159,"last_round":0,"last_step":3,"last_signature":{"type":"ed25519","data":"654E93AA49B91F48AFEBE172E2C296900339F8849577467AEA9885200D5D9CD4DC225BB099C436A60C832DD2A3C60B6834D9748C0F8E977420BF3696604E2F04"},"last_signbytes":"7B22636861696E5F6964223A22677265677465737431222C22766F7465223A7B22626C6F636B5F6964223A7B2268617368223A2246333144343534433043343939334237333641323332393738443738333645453846384642433031222C227061727473223A7B2268617368223A2246304430443241333933443241444530323739303244304438333643384532443938333231304234222C22746F74616C223A317D7D2C22686569676874223A3135392C22726F756E64223A302C2274797065223A327D7D","priv_key":{"type":"ed25519","data":"44BD99EE9FFAEA5CECA7E52EF7476A5C949BC8635BCB906468C7CC3456659809F651E966D30CEA413839D63D9EC37455DF1FB2DDC409A76555B0CD0B186723E4"}} -EOF +%{__cp} extrafiles/%{name}/genesis.json .%{_sysconfdir}/%{name}/genesis.json +%{__cp} extrafiles/%{name}/tendermint-config.toml .%{_sysconfdir}/%{name}/tendermint/config.toml +%{__cp} extrafiles/%{name}/%{name}.service .%{_sysconfdir}/systemd/system/%{name}.service +%{__cp} extrafiles/%{name}/%{name}-server.service .%{_sysconfdir}/systemd/system/%{name}-server.service +%{__cp} extrafiles/%{name}/50-%{name}.preset .%{_sysconfdir}/systemd/system-preset/50-%{name}.preset +%{__cp} extrafiles/%{name}/key.json .%{_datadir}/%{name}/key.json +%{__cp} extrafiles/%{name}/key2.json .%{_datadir}/%{name}/key2.json + %{__chmod} -Rf a+rX,u+w,g-w,o-w . %build diff --git a/devops/rpmbuild/spectemplates/ethermint.spec b/devops/rpmbuild/spectemplates/ethermint.spec index bb1115cd2..fa4229531 100644 --- a/devops/rpmbuild/spectemplates/ethermint.spec +++ b/devops/rpmbuild/spectemplates/ethermint.spec @@ -25,105 +25,18 @@ test -d "$GOPATH" || echo "GOPATH not set" test -d "$GOPATH" %{__mkdir_p} %{name}-%{version} cd %{name}-%{version} + %{__mkdir_p} .%{_bindir} .%{_defaultlicensedir}/%{name} .%{_sysconfdir}/%{name}/tendermint .%{_datadir}/%{name} .%{_sysconfdir}/systemd/system .%{_sysconfdir}/systemd/system-preset + %{__cp} $GOPATH/bin/%{name} .%{_bindir} %{__cp} $GOPATH/src/github.com/tendermint/%{name}/LICENSE .%{_defaultlicensedir}/%{name} %{__cp} $GOPATH/src/github.com/tendermint/%{name}/dev/genesis.json .%{_sysconfdir}/%{name}/genesis.json %{__cp} -r $GOPATH/src/github.com/tendermint/%{name}/dev/keystore .%{_sysconfdir}/%{name} -%{__cat} << EOF > .%{_sysconfdir}/%{name}/tendermint/config.toml -# This is a TOML config file. -# For more information, see https://github.com/toml-lang/toml - -proxy_app = "tcp://127.0.0.1:46658" -moniker = "" -fast_sync = true -db_backend = "leveldb" -log_level = "debug" - -[rpc] -laddr = "tcp://0.0.0.0:46657" - -[p2p] -laddr = "tcp://0.0.0.0:46656" -seeds = "" -EOF -%{__cat} << EOF > .%{_sysconfdir}/systemd/system/%{name}.service -[Unit] -Description=Ethermint -#propagates activation, deactivation and activation fails. -Requires=network-online.target -#propagates activation, deactivation, activation fails and stops -BindTo=%{name}-server.service -#propagates stop and restart (one-way) -PartOf=%{name}-server.service -#order -Before=%{name}-server.service -After=network-online.target -#propagates reload -PropagatesReloadTo=%{name}-server.service -ReloadPropagatedFrom=%{name}-server.service +%{__cp} extrafiles/%{name}/tendermint-config.toml .%{_sysconfdir}/%{name}/tendermint/config.toml +%{__cp} extrafiles/%{name}/%{name}.service .%{_sysconfdir}/systemd/system/%{name}.service +%{__cp} extrafiles/%{name}/%{name}-server.service .%{_sysconfdir}/systemd/system/%{name}-server.service +%{__cp} extrafiles/%{name}/50-%{name}.preset .%{_sysconfdir}/systemd/system-preset/50-%{name}.preset -[Service] -Environment="EMHOME=%{_sysconfdir}/%{name}" -Restart=on-failure -User=%{name} -Group=%{name} -PermissionsStartOnly=true -ExecStart=%{_bindir}/%{name} --rpc --rpcaddr=0.0.0.0 --ws --wsaddr=0.0.0.0 --rpcapi eth,net,web3,personal,admin -ExecReload=/bin/kill -HUP \$MAINPID -KillSignal=SIGTERM - -[Install] -WantedBy=multi-user.target -Also=%{name}-server.service -EOF -%{__cat} << EOF > .%{_sysconfdir}/systemd/system/%{name}-server.service -[Unit] -Description=Ethermint server -Requires=network-online.target -BindTo=%{name}.service -PartOf=%{name}.service -After=network-online.target %{name}.service -PropagatesReloadTo=%{name}.service -ReloadPropagatedFrom=%{name}.service - -[Service] -Environment="TMHOME=%{_sysconfdir}/%{name}/tendermint" -Restart=on-failure -User=%{name} -Group=%{name} -PermissionsStartOnly=true -ExecStart=%{_bindir}/tendermint node -ExecReload=/bin/kill -HUP \$MAINPID -KillSignal=SIGTERM - -[Install] -WantedBy=multi-user.target %{name}.service -Also=%{name}.service -EOF -%{__cat} << EOF > .%{_sysconfdir}/systemd/system-preset/50-%{name}.preset -disable %{name}.service -disable %{name}-server.service -EOF -%{__cat} << EOF > .%{_datadir}/%{name}/tendermint-genesis-validator.json -{ - "genesis_time":"2017-06-10T03:37:03Z", - "chain_id":"my_testchain_id", - "validators": - [ - { - "pub_key":{"type":"ed25519","data":"F651E966D30CEA413839D63D9EC37455DF1FB2DDC409A76555B0CD0B186723E4"}, - "amount":10, - "name":"my_testchain_node" - } - ], - "app_hash":"", - "app_options": {} -} -EOF -%{__cat} << EOF > .%{_datadir}/%{name}/priv_validator-example.json -{"address":"AF5886732763B3A38861FC8D2AA2698A156D28BD","pub_key":{"type":"ed25519","data":"F651E966D30CEA413839D63D9EC37455DF1FB2DDC409A76555B0CD0B186723E4"},"last_height":159,"last_round":0,"last_step":3,"last_signature":{"type":"ed25519","data":"654E93AA49B91F48AFEBE172E2C296900339F8849577467AEA9885200D5D9CD4DC225BB099C436A60C832DD2A3C60B6834D9748C0F8E977420BF3696604E2F04"},"last_signbytes":"7B22636861696E5F6964223A22677265677465737431222C22766F7465223A7B22626C6F636B5F6964223A7B2268617368223A2246333144343534433043343939334237333641323332393738443738333645453846384642433031222C227061727473223A7B2268617368223A2246304430443241333933443241444530323739303244304438333643384532443938333231304234222C22746F74616C223A317D7D2C22686569676874223A3135392C22726F756E64223A302C2274797065223A327D7D","priv_key":{"type":"ed25519","data":"44BD99EE9FFAEA5CECA7E52EF7476A5C949BC8635BCB906468C7CC3456659809F651E966D30CEA413839D63D9EC37455DF1FB2DDC409A76555B0CD0B186723E4"}} -EOF %{__chmod} -Rf a+rX,u+w,g-w,o-w . %build