이메일 #136 - #140
원본 출처: Satoshi - Sirius emails 2009-2011
이메일 #136
Date: Wed, 23 Dec 2009 17:53:18 +0000
From: Satoshi Nakamoto <[email protected]>
Subject: Re: Bitcoin stuff
To: [email protected]
한글 번역
[email protected]님이 쓰셨습니다:
코인이 들어왔는지 확인하고 코인을 보내려면 최소한 명령줄 도구는 필요합니다. 백그라운드에서 실행 중인 비트코인 프로세스와 통신할 방법이 필요할 겁니다. 어떻게 해야 할지는 모르겠지만, 아마 RPC와 관련된 방식이 되지 않을까 싶습니다.
백그라운드 프로세스가 그래픽 없이 동작하면 더 좋겠습니다. 메모리를 확보할 방법을 찾지 않는 한, 현재 서비스 수준의 VPS에는 X 윈도 환경을 실행할 메모리가 충분하지 않습니다.
왜 모두가 UI 없음을 집요하게 요구하는지 궁금했는데, 이미 트레이에 작은 아이콘만 띄우고 실행할 수 있고, 이는 윈도우의 서버 서비스에서는 흔한 방식입니다. 그래서 그런 거였군요. 보지도 않는 바탕화면의 조그만 아이콘 하나를 참지 못한다면 유닉스 특유의 잘난 척 탓으로 돌렸었습니다.
창을 전혀 열지 않는 것은 쉽지만, gtk 라이브러리가 없어서 실패할 수 있습니다. wxWidgets에는 "Only wxBase, no GUI features"를 위한 __WXBASE__가 있습니다. WXGTK 대신 그쪽으로 빌드해서 어떻게 되는지 시험해 보세요. 또 다른 빌드 변형을 내놓기보다는, 같은 실행 파일에서 명령줄 옵션으로 처리할 방법이 있다면 그 편이 더 바람직합니다.
작업에 쓸 수 있는 메모리가 얼마나 됩니까? 비트코인은 필연적으로 메모리를 꽤 씁니다. 윈도우에서는 약 75MB 정도입니다. 문제가 될까요?
명령줄 제어는 다음 할 일 목록에 있습니다. API를 신중하게 설계하고 싶습니다.
대금 수령은 설계상 정해야 할 것이 많은 부분입니다. 호출하는 쪽에서 관심 있는 거래를 식별해야 하는데, 그 점에서 거래당 하나의 비트코인 주소 모델이 도움이 됩니다. 설명글에서 주문 번호를 찾는 것도 또 다른 가능성입니다. 정해진 비트코인 주소로 들어온 내역을 묻는 폴링 방식과 이벤트 구동 방식이 있습니다. 이벤트 구동 방식이라면, 특정 비트코인 주소로 일정 금액이 들어오면 명령줄을 실행하도록 비트코인에 지시하는 형태가 되겠지요.
영어 원문
[email protected] wrote:
> I'd also need at least the command line tools to check if coins have
> been received and to send coins. It would require some way to
> communicate with the Bitcoin process running in the background. I don't
> know how that should be done, maybe with something RPC related.
>
> It would also be great if the background process was non-graphical - the
> VPS on the current service level doesn't have enough memory to run the X
> Windowing environment, unless I come up with some ways to free memory.
I had been wondering why everyone keeps harping on no-UI, when already
you can run it with only a small icon on the tray, which is common for
server services on Windows. So I guess this is why. I had chalked it
up to unix snobbery if they couldn't abide a tiny little icon on a
desktop they never see.
Not opening any windows is easy, but it may fail because the gtk
libraries aren't there. wxWidgets has __WXBASE__ for "Only wxBase, no
GUI features". You could try building for that instead of __WXGTK__ and
see what happens. It would be preferable if there's any way to do it as
a command line switch on the same executable, rather than yet another
build variation to release.
How much memory do you have to work with? Bitcoin necessarily takes a
fair bit of memory; about 75MB on Windows. Is that a problem?
Command line control is one of the next things on the list. I want to
design the API carefully.
Receiving payments is the part that has a lot of design choices to be
made. The caller needs to identify the transactions of interest, that's
where the one-bitcoin-address-per-transaction model helps. Searching
the comments text for an order number is another possibility. There's
polled, asking what has been received to the given bitcoin address, and
event driven. I guess in event driven, bitcoin would be told to run a
command line when a certain amount is received to a certain bitcoin address.
이메일 #137
Date: Fri, 25 Dec 2009 15:25:43 +0200
From: [email protected]
To: Satoshi Nakamoto <[email protected]>
Subject: Re: Bitcoin stuff
한글 번역
작업에 쓸 수 있는 메모리가 얼마나 됩니까?
VPS는 RAM이 320MB이고, 그중 현재 비어 있는 용량은 50MB입니다. 500MB의 스왑 공간도 있습니다.
비트코인은 필연적으로 메모리를 꽤 씁니다. 윈도우에서는 약 75MB 정도입니다. 문제가 될까요?
정말 그렇습니까? 여기서는 윈도우 작업 관리자가 메모리 사용량을 약 13MB로 보여줍니다.
영어 원문
> How much memory do you have to work with?
The VPS has 320MB RAM, 50MB of which is currently free. There's also
500MB swap space.
> Bitcoin necessarily takes a
> fair bit of memory; about 75MB on Windows. Is that a problem?
Sure about that? Windows task manager shows about 13MB memory usage here.
이메일 #138
Date: Fri, 25 Dec 2009 16:11:14 +0000
From: Satoshi Nakamoto <[email protected]>
Subject: Re: Bitcoin stuff
To: [email protected]
한글 번역
맞습니다, 250,000개 블록으로 시험 실행한 것을 보고 있었네요... 맙소사.
정상적인 실행은 메모리 사용량 17MB, VM 크기 10MB로 나옵니다.
[email protected]님이 쓰셨습니다:
작업에 쓸 수 있는 메모리가 얼마나 됩니까?
VPS는 RAM이 320MB이고, 그중 현재 비어 있는 용량은 50MB입니다. 500MB의 스왑 공간도 있습니다.
비트코인은 필연적으로 메모리를 꽤 씁니다. 윈도우에서는 약 75MB 정도입니다. 문제가 될까요?
정말 그렇습니까? 여기서는 윈도우 작업 관리자가 메모리 사용량을 약 13MB로 보여줍니다.
영어 원문
You're right, I was looking at a test run with 250,000 blocks... duh.
A normal one shows 17MB memory usage and 10MB VM size.
[email protected] wrote:
>> How much memory do you have to work with?
> The VPS has 320MB RAM, 50MB of which is currently free. There's also
> 500MB swap space.
>
>> Bitcoin necessarily takes a
>> fair bit of memory; about 75MB on Windows. Is that a problem?
>
> Sure about that? Windows task manager shows about 13MB memory usage here.
>
이메일 #139
Date: Tue, 05 Jan 2010 03:55:14 +0200
From: [email protected]
To: Satoshi Nakamoto <[email protected]>
Subject: Bitcoin Exchange
한글 번역
bitcoinexchange.com 서비스의 시제품을 지금 올려 두었습니다(인증: bitcoin/bit). 파이썬 기반의 장고 웹 애플리케이션 프레임워크에서 실행 중인데, php와 비교하면 작업하기가 즐겁습니다.
이제 며칠 동안 공부해야 해서, 그 뒤에 거래소 서비스 작업으로 돌아올 수 있습니다. 무엇보다 가격을 고쳐서, 제가 가진 비트코인 공급량이 0에 가까워질수록 비트코인 가격이 무한대를 향해 오르도록 하겠습니다. 그렇게 하면 시장 가격을 찾아 공급과 수요가 만나는 지점에 머물 수 있습니다. 쌍곡선 가격 곡선의 매개변수를 어떻게 정해야 할지는 아직 완전히 확신이 서지 않아서, 생각해 볼 문제입니다.
영어 원문
I have a prototype of the bitcoinexchange.com service up now (auth:
bitcoin/bit). It's running on the Python-powered Django web
application framework, which is a pleasure to work with, compared to
php.
I'll have to do some studying for a few days now, after which I can
return to work with the exchange service. Among other things I'll fix
the pricing so that the price of Bitcoins grows towards infinity when
my supply of them gets closer to zero. That way I can find the market
rate and stay at the point where supply meets demand. I'm not yet
completely sure what the parameters of the hyperbolic pricing curve
should be, so that's something to think about.
이메일 #140
Date: Wed, 03 Feb 2010 11:27:17 +0200
From: [email protected]
To: [email protected]
Subject: Bitcoin API
한글 번역
비트코인 API의 프로세스 간 호출 방식은 이미 정하셨습니까? 쉬운 해결책은 wxWidgets에서 제공하는 소켓 인터페이스입니다: http://docs.wxwidgets.org/trunk/overview_ipc.html. wxServer를 실행하는 비트코인 프로그램은 명령줄에서 bitcoin 실행 파일을 호출하거나 직접 wxClient 앱을 만들어 접속할 수 있습니다.
또 다른 방법은 그냥 일반적인 BSD 소켓을 쓰는 것입니다.
가지고 계신 64비트 리눅스용 비트코인 바이너리가 있으면 보내 주시겠습니까? VPS에서 컴파일을 시도했는데 메모리가 부족했습니다. 32비트 버전(ia32-libs 포함)도 시도해 봤지만, 공유 라이브러리를 찾지 못했습니다.
영어 원문
Have you decided upon the inter-process calling method of the Bitcoin
API yet? An easy solution would be the socket interface provided by
wxWidgets: http://docs.wxwidgets.org/trunk/overview_ipc.html. The
Bitcoin program running a wxServer could be then accessed by calling
the bitcoin executable from the command line or by coding your own
wxClient app.
Another option would be to just use the plain BSD sockets.
Can you send me a 64-bit Linux binary of Bitcoin if you have one? I
tried compiling on the VPS, but it ran out of memory. Tried the 32-bit
version (with ia32-libs) also, but it didn't find the shared libraries.