Bitcoin Forum
April 26, 2017, 11:46:07 PM *
News: Latest stable version of Bitcoin Core: 0.14.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [PULL] Allow move RPC to take account balances negative  (Read 725 times)
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652


Chief Scientist


View Profile WWW
May 09, 2011, 07:47:18 PM
 #1

   https://github.com/bitcoin/bitcoin/pull/215

This pull is prompted by changes I'm making to ClearCoin, and should apply to any service where customers will owe the service bitcoins.   It removes the account balance checks from the RPC move command.

I'll use it to create accounts associated with users that keep track of how many bitcoins they owe; for example, if I owed 1 bitcoin ClearCoin will tell bitcoin:
  move 'gavinandresen' 'total_owed' 1.00

Assuming I'm not carrying a balance, that makes the gavinandresen account balance -1.00 BTC.  When I pay to one of the addresses associated with the 'gavinandresen' account, the account balance will be automatically credited.

If I were a professional accountant I probably would have written 'move' this way to begin with...

How often do you get the chance to work on a potentially world-changing project?
1493250367
Hero Member
*
Offline Offline

Posts: 1493250367

View Profile Personal Message (Offline)

Ignore
1493250367
Reply with quote  #2

1493250367
Report to moderator
1493250367
Hero Member
*
Offline Offline

Posts: 1493250367

View Profile Personal Message (Offline)

Ignore
1493250367
Reply with quote  #2

1493250367
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1493250367
Hero Member
*
Offline Offline

Posts: 1493250367

View Profile Personal Message (Offline)

Ignore
1493250367
Reply with quote  #2

1493250367
Report to moderator
1493250367
Hero Member
*
Offline Offline

Posts: 1493250367

View Profile Personal Message (Offline)

Ignore
1493250367
Reply with quote  #2

1493250367
Report to moderator
1493250367
Hero Member
*
Offline Offline

Posts: 1493250367

View Profile Personal Message (Offline)

Ignore
1493250367
Reply with quote  #2

1493250367
Report to moderator
Luke-Jr
Legendary
*
expert
Offline Offline

Activity: 2142



View Profile
May 09, 2011, 09:27:38 PM
 #2

I'm pretty sure this used to work, though it didn't when I just tried...

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!