elective-stereophonic
elective-stereophonic
ForgeNXT.com (beta)
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Pages: 1 [2]  All

Author Topic: ForgeNXT.com (beta)  (Read 8610 times)

forkedchain

  • Ex-Staff Member
  • Hero Member
  • *****
  • Karma: +74/-10
  • Offline Offline
  • Posts: 1190
  • bite me
    • View Profile
Re: ForgeNXT.com (beta)
« Reply #20 on: January 25, 2016, 02:04:01 am »

i just fixed my pool - only thing had to change was to add includeEffectiveBalance = true in POST for getAccount API
Logged
NXT tips: 2319251 or NXT-8SWM-2224-YKWW-22222

phramz

  • Guest
Re: ForgeNXT.com (beta)
« Reply #21 on: January 25, 2016, 08:48:17 am »

i just fixed my pool - only thing had to change was to add includeEffectiveBalance = true in POST for getAccount API

unfortunately i had to do a bit more ... eg "GetAccountBalance" was deprecated and removed. i calculate shares for each (not only the forged) block and lessor which makes it more precise but very expensive in the backend. due to that algo i need to do some weird caching and deal with rollbacks of the blockchain.  :-\
Logged

Jean-Luc

  • Core Dev
  • Hero Member
  • *****
  • Karma: +816/-81
  • Offline Offline
  • Posts: 1610
    • View Profile
Re: ForgeNXT.com (beta)
« Reply #22 on: January 25, 2016, 12:17:28 pm »

You probably mean getAccountTransactions, which was removed after deprecation. But getBlockchainTransactions can be used for the same purpose now, it is only that by default it does not distinguish between phased and non-phased transactions and returns all. But it takes a few parameters such as phasedOnly, nonPhasedOnly, includePhasingResult, executedOnly, which can be used to tune it and return the results you need, with some performance overhead when necessary to check phased transaction execution status.
Logged
GPG key fingerprint: 263A 9EB0 29CF C77A 3D06  FD13 811D 6940 E1E4 240C
NXT-X4LF-9A4G-WN9Z-2R322

phramz

  • Guest
Re: ForgeNXT.com (beta)
« Reply #23 on: January 25, 2016, 12:33:47 pm »

You probably mean getAccountTransactions, which was removed after deprecation. But getBlockchainTransactions can be used for the same purpose now, it is only that by default it does not distinguish between phased and non-phased transactions and returns all. But it takes a few parameters such as phasedOnly, nonPhasedOnly, includePhasingResult, executedOnly, which can be used to tune it and return the results you need, with some performance overhead when necessary to check phased transaction execution status.

yes, i meant "getAccountTransactions" my bad :D ... "getBlockchainTransactions" is exactly what i use now and it works like a charm. btw. the tweaked block times algo  works pretty good and makes forging fun again ... thanks for good work!  :)
Logged
Pages: 1 [2]  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly