Skip to content

Commit

Permalink
Merge pull request #350 from btbf:8.7.3
Browse files Browse the repository at this point in the history
sjg tool v3.7.1
  • Loading branch information
btbf committed Jan 30, 2024
2 parents e204570 + c6357ee commit 80eacd3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
9 changes: 8 additions & 1 deletion docs/operation/bp-move.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,15 @@ status: new
| pool.id | stakepoolid(hex形式) |
| guild-db | ブロックログ関連フォルダ(cncli.db以外) |

上記の移行ファイルを一つのファイルに圧縮する

=== "旧BP"

Zstandardインストール
```
sudo apt install zstd
```

上記の移行ファイルを一つのファイルに圧縮する
```
cd $NODE_HOME
tar --exclude "guild-db/cncli/cncli.db" -acvf bp-move.zst guild-db/ vrf.skey vrf.vkey kes.skey kes.vkey node.cert payment.addr stake.addr mainnet-topology.json poolMetaData.json poolMetaDataHash.txt startBlockProducingNode.sh pool.id-bech32 pool.id
Expand Down
6 changes: 5 additions & 1 deletion docs/operation/tool.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPO JAPAN GUILD TOOL

最終更新日:2023/12/16 v3.7.0
最終更新日:2024/1/30 v3.7.1

!!! info "主な機能"
* payment.addr残高照会
Expand Down Expand Up @@ -74,6 +74,10 @@ gtool

## 更新履歴

### 3.7.1
* ブロック生成状態チェック 誓約チェック判定修正
(payment.addr + stake.addr報酬合計)

### 3.7.0
* CLI 8.17.0.0対応
* ディスク空き容量とDB容量表示追加
Expand Down
7 changes: 4 additions & 3 deletions scripts/sjgtool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# 入力値チェック/セット
#

TOOL_VERSION="3.7.0"
TOOL_VERSION="3.7.1"
COLDKEYS_DIR='$HOME/cold-keys'

# General exit handler
Expand Down Expand Up @@ -542,9 +542,10 @@ ${FG_MAGENTA}■プール資金出金($WALLET_PAY_ADDR_FILENAME)${NC}

rm -rf $NODE_HOME/metaCheck

koios_stake_total=`curl -s -X POST "$KOIOS_API/account_info" -H "Accept: application/json" -H "content-type: application/json" -d "{\"_stake_addresses\":[\"$(cat $NODE_HOME/$WALLET_STAKE_ADDR_FILENAME)\"]}" | jq -r '.[].total_balance'`

#誓約チェック
if [[ $total_balance -ge $pledge ]]; then
if [[ $koios_stake_total -ge $pledge ]]; then
echo
printf "${FG_MAGENTA}■誓約チェック${NC}${FG_GREEN}OK${NC}\n"
okCnt=$((${okCnt}+1))
Expand All @@ -553,7 +554,7 @@ ${FG_MAGENTA}■プール資金出金($WALLET_PAY_ADDR_FILENAME)${NC}
printf "${FG_MAGENTA}■誓約チェック${NC}${FG_RED}NG${NC} ${FG_YELLOW}payment.addrに宣言済み誓約(Pledge)以上のADAを入金してください${NC}\n"
fi
printf " 宣言済み誓約 :${FG_YELLOW}$pledge_scale${NC} ADA\n"
printf "  Wallet残高 :$(scale1 ${total_balance}) ADA\n"
printf "  委任合計  :$(scale1 ${koios_stake_total}) ADA (payment.addr + stake.addr報酬合計)\n"

#ノード起動スクリプトファイル名読み取り
exec_path=`grep -H "ExecStart" /etc/systemd/system/cardano-node.service`
Expand Down

0 comments on commit 80eacd3

Please sign in to comment.