This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# For each staked validator, get the release version | |
# command to call miner of the desired validator to use | |
MINER=./_build/validator/rel/miner/bin/miner | |
VALS=$(${MINER} ledger validators --format csv -v | awk -F, '$7 == "staked" {print $2}') | |
${MINER} ledger validators --format csv -v | awk -F, '$7 == "staked" {print $2}' | xargs -P 0 -I{} ${MINER} peer connect /p2p/{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(test). | |
-export([ | |
test/0 | |
]). | |
-define(RIAK_HOST, "127.0.0.1"). | |
-define(RIAK_PORT, 8087). | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(assignment). | |
-export([print/1]). | |
print(List) -> | |
PrintList = fun({CN, IN, CT, CC, CE, RN}) -> | |
io:format("~p ~p ~p ~p ~p ~p~n", [CN, IN, CT, CC, CE, RN]) | |
end, | |
list:foreach(PrintList, List). | |
printList(L) -> |