elective-stereophonic
elective-stereophonic
getPrunableMessages  
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Author Topic: getPrunableMessages  (Read 1100 times)

kunibopl

  • Jr. Member
  • **
  • Karma: +9/-5
  • Offline Offline
  • Posts: 91
    • View Profile
getPrunableMessages
« on: August 30, 2016, 09:13:53 am »

can someone tell me how getPrunableMessages&account works exactly.
In the API wiki I don't find this info. Where would I have to look in the code?
I noticed, that only messages of a certain length qualify for prunable messages.
You can see this, when you compare
http://localhost:7876/nxt?requestType=getPrunableMessages&account=NXT-YXC4-RB92-F6MQ-2ZRA6
with
https://mynxt.info/account/NXT-YXC4-RB92-F6MQ-2ZRA6
the first link gives only transactions with a certain message length.

I need to display all prunable messages independent of their length.
What is the current lifetime of a prunable message? 90 days?
Logged

Riker

  • Core Dev
  • Hero Member
  • *****
  • Karma: +440/-42
  • Offline Offline
  • Posts: 1796
    • View Profile
Re: getPrunableMessages
« Reply #1 on: August 30, 2016, 02:04:04 pm »

As explained in the change log:
Creating prunable plain messages of less than 28 bytes is not allowed, as at
such small sizes it is more efficient to store the full message instead of a
32 byte hash of it. There is no lower limit on prunable encrypted messages.
Logged
NXT Core Dev
Account: NXT-HBFW-X8TE-WXPW-DZFAG
Public Key: D8311651 Key fingerprint: 0560 443B 035C EE08 0EC0  D2DD 275E 94A7 D831 1651

kunibopl

  • Jr. Member
  • **
  • Karma: +9/-5
  • Offline Offline
  • Posts: 91
    • View Profile
Re: getPrunableMessages
« Reply #2 on: September 01, 2016, 08:57:07 am »

thx
Logged
 

elective-stereophonic
elective-stereophonic
assembly
assembly