Bitcoin Forum
December 16, 2017, 11:21:39 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: ListGenerated and GetKHPS RPC Methods Patch  (Read 1041 times)
lachesis
Full Member
***
Offline Offline

Activity: 210


View Profile
July 14, 2010, 08:56:58 PM
 #1

Hello all,

I've made a patch against svn-r102 that adds three RPC methods:
ListGenerated [pendingOnly=false]
Returns a list of generated transactiosn. If pendingOnly is true, includes only accepted but not yet matured transactions.
Here's an example output:
[
    {
        "value" : 50.00000000000000,
        "maturesIn" : 0,
        "accepted" : true,
        "confirmations" : 8184,
        "genTime" : 1275586091
    },
    {
        "value" : 50.00000000000000,
        "maturesIn" : 0,
        "accepted" : true,
        "confirmations" : 7545,
        "genTime" : 1275963218
    }
]

I released a similar patch is the past, but this one is finally production-quality.

I also added two more functions:
gethps and getkhps

Those just return the hash rate and the hash rate / 1000. getkhps was also added as a key in getinfo.

Anyway, this patch can be downloaded at:
http://www.alloscomp.com/bitcoin/patches/bitcoin-svn-102-rpccalls-2010-07-14.patch

If you're using Linux x86_64, you can try out my binaries at:
http://www.alloscomp.com/bitcoin/binaries

Bitcoin Calculator | Scallion | GPG Key | WoT Rating | 1QGacAtYA7E8V3BAiM7sgvLg7PZHk5WnYc
1513466499
Hero Member
*
Offline Offline

Posts: 1513466499

View Profile Personal Message (Offline)

Ignore
1513466499
Reply with quote  #2

1513466499
Report to moderator
1513466499
Hero Member
*
Offline Offline

Posts: 1513466499

View Profile Personal Message (Offline)

Ignore
1513466499
Reply with quote  #2

1513466499
Report to moderator
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513466499
Hero Member
*
Offline Offline

Posts: 1513466499

View Profile Personal Message (Offline)

Ignore
1513466499
Reply with quote  #2

1513466499
Report to moderator
1513466499
Hero Member
*
Offline Offline

Posts: 1513466499

View Profile Personal Message (Offline)

Ignore
1513466499
Reply with quote  #2

1513466499
Report to moderator
1513466499
Hero Member
*
Offline Offline

Posts: 1513466499

View Profile Personal Message (Offline)

Ignore
1513466499
Reply with quote  #2

1513466499
Report to moderator
dete
Newbie
*
Offline Offline

Activity: 22



View Profile
July 17, 2010, 07:09:04 AM
 #2

I'd love this functionality, but the patch doesn't work for me.  Neither against 102 or against 106 (the HEAD as of this post).

You're referencing a variable dHashesPerSec, but that a local variable of a function in another file!  Pretty sure you're missing some of the patch!

Send me a tip!
1Benh27wZoszDjvGTSWTWD2CWPr4rWUoGk
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!