스탭코딩

bitcoind 구동

BLOCKCHAIN2019. 5. 17. 14:08

bitcoin 블록체인의 체인데이터를 동기화 하기 위해 bitcoind를 실행합니다.

 

bitcoind가 설치된 디렉터리에서 ./bitcoind 혹은 스타드 쉘을 작성해서 실행하면 됩니다.

스타트 쉘은 EOS BP 중 하나인 CryptoLions 깃헙 자료를 참고로 만들었습니다. https://github.com/CryptoLions/scripts/blob/master/start.sh

  !/bin/bash
    DATADIR="bitcoind가 적치된 디렉터리 위치"

    #stop bitcoind
    $DATADIR/stop.sh

    #start bitcoind
    echo -e "Starting Bitcoind.. \n";
    $DATADIR/bitcoind "$@" > $DATADIR/stdout.txt 2> $DATADIR/stderr.txt & echo $! > $DATADIR/bitcoind.pid

'BLOCKCHAIN' 카테고리의 다른 글

bitcoin.conf (for rpc)  (0) 2019.05.15

server=1

# server=1 은 Bitcoin-Qt 와 bitcoind JSON-RPC 사용하도록 합니다.

 

rpcuser=rpc유저

rpcpassword=rpc유저의 비밀번호

# rpc접속에 필요한 유저와 비밀번호를 설정합니다.

 

rpcallowip=rpc를 허용할 ip

rpcallowip=rpc를 허용할 ip2

rpcallowip=rpc를 허용할 ip3

#추가 허용 ip가 있을경우 아래에 추가합니다. 형식은 포트번호를 제외한 ip만 입력합니다.

 

rpcport=rpc포트

# 메인넷 디폴트 포트:18332, 테스트넷 디폴트 포트:8332

 

rpcthreads=4

#rpc 호출을 처리할 스래드 개수 디폴트:4

 

reindex=1

# 블록 초기화와 함께 새롭게 블록을 다운로드합니다. 이어서 블록동기화를 진행할 경우 reindex 옵션은 삭제해주세요.

 

txindex=1

#블록체인 내의 트랜잭션에 대한 데이터 조회

'BLOCKCHAIN' 카테고리의 다른 글

bitcoind 구동  (0) 2019.05.17


Remix 에서 환경을 Injected web3를 사용하려고 할때 


 'No injected Web3 provider found. Make sure your provider (e.g. MetaMask) is active and running (when recently activated you may have to reload the page).'


에러가 뜬다면 geth를 설치해주면 됩니다.





https://geth.ethereum.org/downloads/


에 접속해서 운영체제에 맞는 버전을 설치하고 브라우져를 끄고 다시 리믹스에 접속하시면 됩니다 :)

'BLOCKCHAIN > Ethereum' 카테고리의 다른 글

A next generation blockchain 차세대 블록체인  (0) 2018.08.15
What is Ethereum? 이더리움이란?  (0) 2018.08.15


A next generation blockchain


  Blockchain technology is the technological basis of Bitcoin, first described by its mysterious author Satoshi Nakamoto in his white paper “Bitcoin: A Peer-to-Peer Electronic Cash System”, published in 2008. While the use of blockchains for more general uses was already discussed in the original paper, it was not until a few years later that blockchain technology emerged as a generic term. A blockchain is a distributed computing architecture where every network node executes and records the same transactions, which are grouped into blocks. Only one block can be added at a time, and every block contains a mathematical proof that verifies that it follows in sequence from the previous block. In this way, the blockchain’s “distributed database” is kept in consensus across the whole network. Individual user interactions with the ledger (transactions) are secured by strong cryptography. Nodes that maintain and verify the network are incentivized by mathematically enforced economic incentives coded into the protocol.


-       블록체인 기술은 비트코인 기술을 기반으로 하고있음

-       블록 체인은 모든 네트워크 노드가 블록으로 그룹화 된 동일한 트랜잭션을 실행하고 기록하는 분산 컴퓨팅 아키텍처

-       한 번에 하나의 블록 만 추가 할 수 있으며 모든 블록에는 이전 블록의 순서대로 이어지는지를 검증하는 수학적 증명이 포함되고, 이러한 방식으로 블록 체인의 "분산 데이터베이스"는 전체 네트워크에 걸쳐 공감대(데이터 일치)유지


 

  In Bitcoin’s case the distributed database is conceived of as a table of account balances, a ledger, and transactions are transfers of the bitcoin token to facilitate trustless finance between individuals. But as bitcoin began attracting greater attention from developers and technologists, novel projects began to use the bitcoin network for purposes other than transfers of value tokens. Many of these took the form of “alt coins” - separate blockchains with cryptocurrencies of their own which improved on the original bitcoin protocol to add new features or capabilities. In late 2013, Ethereum’s inventor Vitalik Buterin proposed that a single blockchain with the capability to be reprogrammed to perform any arbitrarily complex computation could subsume these many other projects.


-       비트 코인 (Bitcoin)의 경우 분산 데이터베이스는 계좌 잔고, 원장 테이블로 간주되며 거래는 비트 동전 토큰을 전송하여 개개인 간의 보증 없는 금융을 촉진

-       비트코인이 개발자들로부터 주목을 받기 시작하면서 알트코인형태로 원래의 비트 동전 프로토콜을 개선하여 새로운 기능을 추가 한 독점적인 블록 체인(cryptocurrencies)을 사용

-       2013 년 말 Ethereum의 창시자인 비탈릭 부테린은 임의로 복잡한 계산을 수행하도록 다시 프로그래밍 할 수 있는 단일 블록 체인에 다른 프로젝트(알트코인)을 담을 수 있다고 제안

 

  In 2014, Ethereum founders Vitalik Buterin, Gavin Wood and Jeffrey Wilcke began work on a next-generation blockchain that had the ambitions to implement a general, fully trustless smart contract platform.


-       2014 년 이더리움 창립자인 비탈릭 부테린, 개빈 우드 및 제프리 윌케는 완전한 보증 없는 스마트 계약 플랫폼을 구현하고자하는 차세대 블록 체인에 대한 작업 시작


출처

Ethereum Homestead Documentation

(http://www.ethdocs.org/en/latest/index.html)

Docs » Introduction » What is Ethereum?




What is Ethereum?



Ethereum is an open blockchain platform that lets anyone build and use decentralized applications that run on blockchain technology. Like Bitcoin, no one controls or owns Ethereum – it is an open-source project built by many people around the world. But unlike the Bitcoin protocol, Ethereum was designed to be adaptable and flexible. It is easy to create new applications on the Ethereum platform, and with the Homestead release, it is now safe for anyone to use those applications.


-       누구나 블록 체인 기술록 실행되는 분산된 애플리케이션을 구축하고 사용할 수 있는 개방형 블록 체인 플랫폼

-       오픈소스 프로젝트

-       적용도와 유연성이 높게 고안됨





출처

Ethereum Homestead Documentation

(http://www.ethdocs.org/en/latest/index.html)

Docs » Introduction » What is Ethereum?