Skip to content
Snippets Groups Projects
Commit 2fad69b8 authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

Removing sealeradd/sealerrem

parent 46ac202b
No related branches found
No related tags found
No related merge requests found
......@@ -80,12 +80,6 @@ Administra un *smart contract* de la Destilería ya desplegado. Va a mostrar
las cuentas registradas y la cantidad de Ether configurada ("*allowance*") de
cada una de ellas.
## sealeradd.sh / sealerrem.sh
Cuando un operador de un sellador vota para promover o remover un sellador,
este script hace la mayor parte. Toma un solo argumento, el número de la
cuenta del sellador por el cual se vota.
## unlock.js
Debloqua las cuentas del sistema (vease tambien `monitor.js`). Si una cuenta
......
#!/bin/bash
# Robert Martin-Legene <robert@nic.ar>
# Proposes to promote a new sealer or to demote an existing sealer.
# Also sends this vote to the new Sealers contract, so we have a place
# a contract can look up which addresses are sealers.
if [ -z "${BFAHOME}" ]; then echo "\$BFAHOME not set. Did you source bfa/bin/env ?" >&2; exit 1; fi
source ${BFAHOME}/bin/libbfa.sh || exit 1
operation="false"
if [ $( basename $0 ) == "sealeradd.sh" ]
then
operation="true"
fi
victim="$1"
(
echo "clique.propose(\"0x${victim#0x}\", ${operation});"
contractSendTx Sealers admin_promote \"0x${victim#0x}\" ${operation}
) | geth_attach
sealeradd.sh
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment