STEEM POWER retention ratio of top 50 witnesses

by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/steem-power-retention-ratio-of-top-50-witnesses Hello, this is @joviansummer(witness: @jswit). Some time ago there was a bit of discussion on discord witness chanel about witnesses' power-down/cashing-out. So out of curiosity I just checked current ratio of witnesses' own STEEM POWER(VESTS) and all-time producer reward(VESTS). The ratio is calculated by the following simple formula: ratio(%) = account's own SP(MV) / all-time producer reward SP(MV) * 100% Ratio value less than 100% indicates power-down. If witness does additional power-up or gets other types of reward(e.g., curation reward), the ratio may exceed 100%. This does not take witness' other accounts into consideration. All-time producer reward data is from @steemchiller's SDS API. Here is the result: rank account own_sp prod_sp ratio 1 justyy 2188.411MV 1284.2MV 170.41% 2 steemchiller 982.134MV 124...

파이썬 beem에서 Steem 객체를 사용할 때 재시도 회수와 시간초과 설정

by joviansummer
original STEEMIT post: https://steemit.com/blog/@joviansummer/beem-steem


파이썬 beem을 이용해서 스팀 블럭체인과 상호작용하기 위해 Steem 객체를 사용하는데, API노드에 대한 최대 접속 재시도 회수와 응답시간 제한을 지정할 수 있습니다. Blurt나 Hive 객체에서도 동일합니다.

최대 접속 재시도 회수는 지정하지 않을 경우 기본값은 -1입니다. -1이면 재시도 회수에 제한이 없다는 의미입니다. 만약 예를 들어 3번을 재시도해도 API노드에 접속을 하지 못하면 실패로 간주하고 싶다면 num_retries를 아래와 같이 설정합니다.

from beem import Steem

steem_nodes = ["https://api.steemit.com"]

# 접속 재시도 회수 제한: 3회
s = Steem(node=steem_nodes, num_retries=3)

만약 3번 재접속을 해도 접속에 실패한다면 예외(exception)가 발생하게 됩니다.

응답시간 제한은 접속 요청을 보낸 후 몇초 동안 응답을 기다릴 것인지를 의미하며, 지정하지 않을 경우 기본값은 60초입니다. 만약 30초 이내에 응답이 오지 않을 경우 실패로 간주하고 싶다면 timout을 아래와 같이 설정합니다.

# 응답시간 제한 30초
s = Steem(node=steem_nodes, timeout=30)

당연히 위의 조건을 둘 다 적용할 수도 있습니다.

s = Steem(node=steem_nodes, num_retries=3, timeout=30)

@joviansummer의 스팀 프로젝트

스팀 증인노드를 운영중입니다. @jswit에 증인투표해 주시면 감사하겠습니다.
(https://steemitwallet.com/~witnesses)

jswit 증인 노드 프로젝트를 시작합니다.

jsup 업보팅(upvoting) 서비스 소개

jsup 수혜자 지정 기능 추가

jSTEEM 프로젝트 - 텔레그램 챗봇으로 구현하는 스팀 블럭체인 탐색기

STEEM.NFT - 디지털 아트 보존 프로젝트

Posted through the AVLE Dapp (https://avle.io)

Comments

Popular posts from this blog

스티미언의 영향력 지수 계산

jsup/avle code update - you don't have to write post everyday

jsup/avle 보팅 코드 갱신 - 1일1포스팅 강박에서 벗어나기