...
连接远程节点
代码块 language bash # barnard network > kubectl exec -it -n starcoin-barnard starcoin-0 -- /starcoin/starcoin --connect /sc-data/barnard/starcoin.ipc console # halley network > kubectl exec -it -n starcoin-halley starcoin-0 -- /starcoin/starcoin --connect /sc-data/halley/starcoin.ipc console
初始(需要在重置网络后调用)
代码块 language bash account execute-function -s 0x0000000000000000000000000a550c18 --function 0x1::FrozenConfigStrategy::initialize
修改全局冻结或解除全局冻结
代码块 language bash # 添加/解除全局冻结 account execute-function -s 0x0000000000000000000000000a550c18 --function 0x1::FrozenConfigStrategy::set_global_frozen --arg true -b # 查看冻结 dev call --function 0x1::FrozenConfigStrategy::has_frozen_global --arg 0x0000000000000000000000000a550c18 { "ok": [ false ] }
添加或者删除黑名单账户
代码块 language bash # 添加账户到黑名单列表 account execute-function -s 0x0000000000000000000000000a550c18 --function 0x1::FrozenConfigStrategy::add_account --arg 0xd0c5a06ae6100ce115cad1600fe59e96 # 从黑名单列表中删除账户 account execute-function -s 0x0000000000000000000000000a550c18 --function 0x1::FrozenConfigStrategy::remove_account --arg 0xd0c5a06ae6100ce115cad1600fe59e96
修改后进行打款测试
代码块 language bash account transfer -s 0xd0c5a06ae6100ce115cad1600fe59e960x0000000000000000000000000a550c18 -r 0x0b1d07ae560c26af9bbb8264f4c7ee73 -v 10000000 -b
...