Bitcoin Forum
October 24, 2017, 04:31:21 AM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: « 1 ... 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 [103] 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 ... 157 »
  Print  
Author Topic: .  (Read 467117 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
duncan_idaho
Sr. Member
****
Offline Offline

Activity: 333


View Profile
July 21, 2015, 12:26:48 PM
 #2041

Yes i update peer list and everything is ok now.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1508819481
Hero Member
*
Offline Offline

Posts: 1508819481

View Profile Personal Message (Offline)

Ignore
1508819481
Reply with quote  #2

1508819481
Report to moderator
altsheets
Hero Member
*****
Offline Offline

Activity: 784

Free trial of #AltFolio = save time, react faster


View Profile WWW
July 21, 2015, 10:53:46 PM
 #2042

Hi. I was wondering if we could see some of the HZ assets listed on coinmarketcap.com? I think that would be a great step.
I notice that coinmarketcap uses https://trade.secureae.com for it's data on NXT assets, is there an equivalent data source for HZ?

Thanks for all the great efforts with HZ lately Smiley

cryptoassetcharts.info is listing them all
(even though the spheres picture is not uptodate, just told him).

And with a dedicated page for each asset, e.g.: AAssetHZ



Newbium great new platform || AltFolio = Altcoin Portfolio solution || AAsset = crowdfunding, dividends paying = profit sharing Assets (on NXT & HZ) - big 2nd dividends were paid, xmas 2016 || AssetGraphs = novel GUI to assets & shareholders (won nxthacks2015!) || ABEE = Block Explorer Extension for ETH clones, live on SOIL || Advice = Consulting || assetparser.py and shareholders.py - tools for NXT/HZ asset buyers & issuers || bamm.py || PeerCrawler || PGP || Texts || Github e.g. ChainCountDown, ethjsre |||| /give/ GiveBackLicense /give/ |||| Looking for an affordable crypto advertisement service with adspaces on crypto-attractive websites, contact me, thx.
Nxtblg
Legendary
*
Offline Offline

Activity: 924



View Profile WWW
July 23, 2015, 11:32:57 AM
 #2043

EDIT: It turns out I was barking up the wrong tree; the POST method I have does work. My call just got hung up because of a silly mistake I made due to my ignorance of how Java regex works. After I caught it, my POST requests have now gone through successfully.

Note To Would-Be Programmers (Like Me): Sometimes, just asking for help frees up your mind enough to think outside the rut you're spinning your wheels in. Smiley






██████████████████████████████████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████████████████████████
███████████████████████████████████████████████████████████████████████▄▄▄███████████████████████
███████████████████████████████████████████████████████████████████████▀▀▀████████████████████████
██████████████████████████████████████████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████████████████████████████████████████





...INTRODUCING WAVES........
...ULTIMATE ASSET/CUSTOM TOKEN BLOCKCHAIN PLATFORM...






MaWo
Hero Member
*****
Offline Offline

Activity: 568


View Profile WWW
July 23, 2015, 12:32:54 PM
 #2044

To anyone here who's got a snippet of Java code that successfully uses the API to place/cancel an order: could you share the code that you used to make a successful POST request? I've been writing a bot that accesses the API info via GET requests with no trouble, but I've been stymied with the POST requests. The Java code I'm using shoots me back this API error code:

Code:
{"errorDescription":"Incorrect request","errorCode":1}

And this is the method code that produces the above error. (A Java whiz will recognize it as ripped-off code to POST to a form page, which is what it is  Embarrassed ):

Code:
 private static String HTTPPost(String ApiChoice, String params) {
    String output;
    int responseCode;
    String urlString;
    URL url;
    URLConnection urlconnection;
    HttpURLConnection connection;
    DataOutputStream out;
    BufferedReader in;
    String whoops;
    int i;

    output = "Wrong crypto parameter!";
    if(ApiChoice.equals("nxt")) {
      urlString = NxtApiLoc + "/nxt";
    }
    else if(ApiChoice.equals("nhz")) {
      urlString = HZApiLoc + "/nhz";
    }
    else return output;

// Might need to add an ? after /nxt and /nhz.

    output = "";

    try{
      url = new URL(urlString);
      urlconnection = url.openConnection();
      connection = (HttpURLConnection)urlconnection;
      connection.setRequestMethod("POST");
      connection.setRequestProperty("charset", "utf-8");
      connection.setRequestProperty("Content-Type",
           "application/x-www-form-urlencoded");
      connection.setRequestProperty("Content-Language", "en-US");
      connection.setUseCaches (false);
      connection.setDoInput(true);
      connection.setDoOutput(true);

      out = new DataOutputStream(connection.getOutputStream());
      out.writeBytes(params);
      out.flush();
      out.close();

      responseCode = connection.getResponseCode();
      in = new BufferedReader(new InputStreamReader(connection.getInputStream()));            
      output = in.readLine();

/*
Might want to try this approach:

      StringBuffer fetcher = new StringBuffer();
      while ((output = in.readLine()) != null) {
        fetcher.append(inputLine);
      }
      in.close();
      output = fetcher.toString();

*/

    } catch(IOException ex) { output = "Failed"; };
    return output;
  }  

Anyhoo, I'm not trying to turn this thread into Stack Exchange: I just clipboarded this code to show you what I'm trying to do.

If there's anyone here that has a method that successfully makes a POST request to the API, I'd be grateful if you could share how you did it. Thanks!

The NFD NSC Asset transfer tool used post requests:

https://bitbucket.org/NFDcoin/nfdcoin/src/98e60e67f1df0e073862c787fda7312f3eba85b1/src/java/nfd/util/NSCAssets/APIRequest.java?at=NFD-1.2.9#APIRequest.java-54

Example to use the sendRequest method.
https://bitbucket.org/NFDcoin/nfdcoin/src/98e60e67f1df0e073862c787fda7312f3eba85b1/src/java/nfd/util/NSCAssets/NSCAssetTransfer.java?at=NFD-1.2.9#NSCAssetTransfer.java-149
Code:
StringBuffer url = new StringBuffer();
url.append((isHttpsConnection ? "https" : "http"));
url.append("://localhost:");
url.append((isTestnet ? "9876" : Nxt.getIntProperty("nxt.apiServerPort")));
url.append("/nxt?requestType=transferAsset");
url.append("&secretPhrase=" + secret);
url.append("&comment=" + transferMessage.getMessage());
url.append("&recipient=" + Convert.toUnsignedLong(generatorAccount.getAccountId()));
url.append("&asset=" + NSC_ASSET_ID);
url.append("&quantityQNT=" + transferMessage.getQuantity());
url.append("&feeNQT=100000000&deadline=100");

StringBuffer buffer;
if (!isDryRun) {
buffer = APIRequest.sendRequest(url.toString());
} else {
buffer = new StringBuffer("mode --dry-run: sending of transactions is disabled");
}
Nxtblg
Legendary
*
Offline Offline

Activity: 924



View Profile WWW
July 23, 2015, 01:20:04 PM
 #2045

The NFD NSC Asset transfer tool used post requests:

https://bitbucket.org/NFDcoin/nfdcoin/src/98e60e67f1df0e073862c787fda7312f3eba85b1/src/java/nfd/util/NSCAssets/APIRequest.java?at=NFD-1.2.9#APIRequest.java-54

Example to use the sendRequest method.
https://bitbucket.org/NFDcoin/nfdcoin/src/98e60e67f1df0e073862c787fda7312f3eba85b1/src/java/nfd/util/NSCAssets/NSCAssetTransfer.java?at=NFD-1.2.9#NSCAssetTransfer.java-149
Code:
StringBuffer url = new StringBuffer();
url.append((isHttpsConnection ? "https" : "http"));
url.append("://localhost:");
url.append((isTestnet ? "9876" : Nxt.getIntProperty("nxt.apiServerPort")));
url.append("/nxt?requestType=transferAsset");
url.append("&secretPhrase=" + secret);
url.append("&comment=" + transferMessage.getMessage());
url.append("&recipient=" + Convert.toUnsignedLong(generatorAccount.getAccountId()));
url.append("&asset=" + NSC_ASSET_ID);
url.append("&quantityQNT=" + transferMessage.getQuantity());
url.append("&feeNQT=100000000&deadline=100");

StringBuffer buffer;
if (!isDryRun) {
buffer = APIRequest.sendRequest(url.toString());
} else {
buffer = new StringBuffer("mode --dry-run: sending of transactions is disabled");
}

Thanks a lot for your quick answer, MaWo. Smiley






██████████████████████████████████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████████████████████████
███████████████████████████████████████████████████████████████████████▄▄▄███████████████████████
███████████████████████████████████████████████████████████████████████▀▀▀████████████████████████
██████████████████████████████████████████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████████████████████████████████████████





...INTRODUCING WAVES........
...ULTIMATE ASSET/CUSTOM TOKEN BLOCKCHAIN PLATFORM...






MaWo
Hero Member
*****
Offline Offline

Activity: 568


View Profile WWW
July 23, 2015, 03:52:40 PM
 #2046

Hello what is deadline to update nodes to version 3.9.2 ? Which block or date (time) ?

2 days left.

3.9.2 announcement on bct was on July 15, 2015, 12:49:26 AM
https://bitcointalk.org/index.php?topic=823785.msg11882155#msg11882155
xchrix
Hero Member
*****
Offline Offline

Activity: 907



View Profile WWW
July 24, 2015, 09:39:01 AM
 #2047

thx for linkin my website! unfortunately there are a lot of bugs on it and i dont have any free time left.. its really annoying. please dont rely on the info there... hopefully i will have some spare time in the next week to fix some bugs..

Hi. I was wondering if we could see some of the HZ assets listed on coinmarketcap.com? I think that would be a great step.
I notice that coinmarketcap uses https://trade.secureae.com for it's data on NXT assets, is there an equivalent data source for HZ?

Thanks for all the great efforts with HZ lately Smiley

cryptoassetcharts.info is listing them all
(even though the spheres picture is not uptodate, just told him).

And with a dedicated page for each asset, e.g.: AAssetHZ



www.cryptocoincharts.info - long term charts for 800+ coins like BTC, LTC, NXT, DOGE
www.cryptoassetcharts.info - charts for decentralized assets like NXT AE, XCP, MSC, ...
BTC donations: 1DRVMYRMFafdtXJF1tivwyoR1SF8LDNKWj
Bitrated user: cryptocoinchart.
altsheets
Hero Member
*****
Offline Offline

Activity: 784

Free trial of #AltFolio = save time, react faster


View Profile WWW
July 27, 2015, 12:43:26 PM
 #2048

... to do this post was still on my TODO list ... finally finding the time to react ...

HZ block explorer

For a long time I wanted to link to an official page about my asset - but there was none.
Everyone agreed it would be nice to have one page per asset in the block explorer, but
there was not enough time in the HZ team to build such an extension. I had suggested
"just send me an example page, and I code that for you" - but I did not have a clear concept
what that would mean in the end: Tons of challenges, studying a huge amount of code,
and actually learning a new programming language - this time in 3 hours *lol*.

Trying to code without debugging - impossible. I need a running system. When thankfully,
pharesim opened the sourcecode, I installed it from github, solved all problems, wrote a
manual how to
... and then I let the backend run. Which took more than a day to finish!  
But now I have a working system to code extensions!  -->

HZ B.E.E.f.A = HZ Block Explorer Extension for Assets

All in all ~35 hours of work later, I successfully finished coding & debugging - my first time ever in PHP!

You can read my proud announcement (4 consecutive postings), my happiness about the tips I received,
and -YIEHAH- pharesims announcement, that it got merged into the official version now (github pull request).
My elaborate documentation of the whole endeavour is in this github README.

(Actually, why I was on it anyways, I could also fix an old bug in the block explorer, zero balance when RS.)

You can discuss my suggestion, an "asset warnings" function - in this horizon forum thread.

Now that it is merged, this is how it looks- a dedicated page for each of the 149 assets:
(click for larger)

Thanks for merging my code. I am intrigued that you could already realize my "from the future" idea
showing the "Number of Transfers" (see my sourcecode lines 117-123). I had not expected that it would work
already, because the current HZ API does not tell us the number of transfers. But the B.E. knows more :-)



TL;DR:
My block explorer extension is online! A page like this one exists for all assets now!
Try it out, perhaps by using that page to tell us about your favorite HZ asset?


Newbium great new platform || AltFolio = Altcoin Portfolio solution || AAsset = crowdfunding, dividends paying = profit sharing Assets (on NXT & HZ) - big 2nd dividends were paid, xmas 2016 || AssetGraphs = novel GUI to assets & shareholders (won nxthacks2015!) || ABEE = Block Explorer Extension for ETH clones, live on SOIL || Advice = Consulting || assetparser.py and shareholders.py - tools for NXT/HZ asset buyers & issuers || bamm.py || PeerCrawler || PGP || Texts || Github e.g. ChainCountDown, ethjsre |||| /give/ GiveBackLicense /give/ |||| Looking for an affordable crypto advertisement service with adspaces on crypto-attractive websites, contact me, thx.
Nxtblg
Legendary
*
Offline Offline

Activity: 924



View Profile WWW
July 27, 2015, 05:10:08 PM
 #2049

... to do this post was still on my TODO list ... finally finding the time to react ...

HZ block explorer

WOW!! You've really put in a lot of work!






██████████████████████████████████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████████████████████████
███████████████████████████████████████████████████████████████████████▄▄▄███████████████████████
███████████████████████████████████████████████████████████████████████▀▀▀████████████████████████
██████████████████████████████████████████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████████████████████████████████████████





...INTRODUCING WAVES........
...ULTIMATE ASSET/CUSTOM TOKEN BLOCKCHAIN PLATFORM...






bit1
Legendary
*
Offline Offline

Activity: 882



View Profile
July 27, 2015, 10:07:05 PM
 #2050

... to do this post was still on my TODO list ... finally finding the time to react ...

HZ block explorer

WOW!! You've really put in a lot of work!

Yeah! Altsheets is doing very good work, And he is really a very active member. I really don´t know if he joined how part of team or he is a collaborator of Horizon Team.

bitJob                       ▄▄▄██████▄▄▄
                ▄▄▄▄██████████████████▄▄▄▄
        ▄▄▄▄██████████████████████████████████▄▄▄▄
  ▄▄▄████████████████████████████████████████████████▄▄▄
██████████████████████████████████████████████████████████
  ▀▀██████████████████████████████████████████████████▀▀
      ▀▀█████████████████████████████████████████████
         ████████████████████████████████████████  ██
         ████████████████████████████████████████  ██
         ████████████████████████████████████████  ██
         ████████████████████████████████████████  ██
         ████████████████████████████████████████  ██
         ████████████████████████████████████████  ██
         ▀██████████████████████████████████████▀  ██
          ▀▀██████████████████████████████████▀▀  ████
                                                 ▄████▄
                                                ▀▀████▀▀
IIII
JPred
Sr. Member
****
Offline Offline

Activity: 404


my magic is growing strong[er]


View Profile
July 29, 2015, 03:58:57 AM
 #2051

I am giving away some FREEDOM fo free to community members. This action will help with the distribution with FREEDOM since I don't operate from a web address or have a massive promotional campaign either. I will at some point create a topic involving FREEDOM and have a little feedback from community on this. As a precursor this current action sets the stage as such. 

If you are interested in receiving some of the tokens all you have to do is send a message to me (link to follow) on HZ platform where you describe what freedom means to you, or how do you see yourself involved with freedom. Freedom is very broadly defined so it does not need to be economic freedom as such - whatever you feel like conveying in the message is up to you - you can freely choose, even if it is just some quote that really means a lot to you. If you want to keep the message private then encrypt it, if you want it to be public then leave out the encryption.

After receiving and reading the messages concerning freedom I will send some freedom to your account.

Here is the link to my account. https://explorer.horizonplatform.io/?page=asset&id=1918076501414611727

Here is my account NHZ-KGPH-8FZU-W843-EQPA2

Happy messaging  Smiley

FREEDOM
BTCat
Legendary
*
Offline Offline

Activity: 1372



View Profile
July 29, 2015, 09:00:43 AM
 #2052

An Interview with Mayor of London candidate, George Galloway

JR: What are your priorities and major policies that you would enact if elected as Mayor London?

GG: I’ll give you the latest one which is attracting a lot of attention, and that’s the Mayor Chain that I have proposed. I’m going to put the entire £17 billion budget online in real time in block chain and this will allow the public in to see exactly what’s coming in and exactly what’s going out, and where it’s going to, and make representation about it.

http://felixonline.co.uk/politics/5648/an-interview-with-mayor-of-london-candidate-george-galloway/

AMLBitcoin is Decentralized Banking on the Blockchain. Visit AMLBitcoin
Tokensale is LIVE: AML Tokensale
Pizpie
Legendary
*
Offline Offline

Activity: 938


View Profile
July 29, 2015, 05:31:34 PM
 #2053

An Interview with Mayor of London candidate, George Galloway

JR: What are your priorities and major policies that you would enact if elected as Mayor London?

GG: I’ll give you the latest one which is attracting a lot of attention, and that’s the Mayor Chain that I have proposed. I’m going to put the entire £17 billion budget online in real time in block chain and this will allow the public in to see exactly what’s coming in and exactly what’s going out, and where it’s going to, and make representation about it.

http://felixonline.co.uk/politics/5648/an-interview-with-mayor-of-london-candidate-george-galloway/

Perfect use of the technology. Great use case for the future...

Trade Bitcoin and Altcoins: https://www.bitmex.com/register/x8ULfG
svider
Jr. Member
*
Offline Offline

Activity: 50


View Profile
July 30, 2015, 08:01:08 AM
 #2054

Any update? When 4.0 wallet will be released?
MaWo
Hero Member
*****
Offline Offline

Activity: 568


View Profile WWW
July 30, 2015, 11:23:07 AM
 #2055

Any update? When 4.0 wallet will be released?

Most likely today evening.
GoldenEye
Hero Member
*****
Offline Offline

Activity: 600


View Profile
July 30, 2015, 12:07:07 PM
 #2056

Good news: I found my password.
Hi, I'm the node bounty developer.

When the detailed node message (with node IPs and amount per node) will be back?

This will take a few days as the local weather is just too hot to do any thinking. Smiley
I'll have it done this week, I promise.

Almost 4 weeks later, I would like to ask the question again.
coinerz
Member
**
Offline Offline

Activity: 79


View Profile WWW
July 30, 2015, 12:48:27 PM
 #2057

Any update? When 4.0 wallet will be released?

Most likely today evening.

I've been running v4.0 for a few days now and it seems to be running pretty flawlessly. Smiley
cbkr
Jr. Member
*
Offline Offline

Activity: 56


View Profile
July 30, 2015, 07:08:01 PM
 #2058

Almost 4 weeks later, I would like to ask the question again.

Sorry for the wait, it's done now.
The test script worked fine on testnet, fingers crossed for the payout tonight.
I squished the data with zlib but I'm sure that's no problem for you. Smiley
GoldenEye
Hero Member
*****
Offline Offline

Activity: 600


View Profile
July 30, 2015, 07:34:01 PM
 #2059

Almost 4 weeks later, I would like to ask the question again.

Sorry for the wait, it's done now.
The test script worked fine on testnet, fingers crossed for the payout tonight.
I squished the data with zlib but I'm sure that's no problem for you. Smiley

Fine, I'm curious
MaWo
Hero Member
*****
Offline Offline

Activity: 568


View Profile WWW
July 30, 2015, 08:58:02 PM
 #2060

We are happy to announce a new release hz-v4.0e.
You can find the new release on github
https://github.com/NeXTHorizon/hz-source/releases/tag/hz-v4.0e

We provide two versions hz-v4.0e and hz-v4.0e-node.
hz-v4.0e-node is a preconfigured  as a public node. By default it allows access to the  API server for everyone.
Contrary to hz-v4.0e-node, hz-v4.0e is configured to only allow access to the API from localhost.
There are no other differences between this two versions.

Changelog:

This is a experimental release. An upgrade is not mandatory, but recommended.

This is the first release which stores all derived objects in the database,
instead of keeping all of them in memory only.

Derived objects are those that are constructed based on the information already
available in the blockchain blocks and transactions - i.e, Accounts, Aliases,
Assets, Goods, Purchases, Orders, Trades. Storing them in the database instead of
in memory means the Asset Exchange and the Digital Goods Store can scale to much
higher number of assets, orders, and goods, without requiring an ever growing
amount of memory for each node.

Using a standard SQL database tables to store those records also allows for
much more sophisticated queries, and allows third parties to write and execute
custom queries against those tables directly, without being dependent on the NRS
http API only.

By storing the state of all derived objects as of the current height, plus their
state at previous heights up to 1440 blocks back, it is possible to completely
eliminate the need for blockchain rescans on startup, and on fork resolution.

On upgrade from, this version will perform an initial
build of the derived objects tables, which on a fast machine takes about 7 minutes,
but may take longer depending on your hardware. The database size will grow
during this rescan, but after shutdown should shrink back to around 1 GB.

There will be no rescans on subsequent restarts, and the startup time is now
reduced to a few seconds only. There will also be no rescans at runtime on block
pop offs.

Derived object tables are kept small by trimming them, only records needed to
allow rollback of up to 1440 blocks back are kept. If you need to preserve and
query historical information going back all the way to height 0, this trimming
can be disabled by setting nhz.trimDerivedTables=false (default is true) in
nhz.properties. After changing this property, a rebuild of the derived tables
can be triggered using the new scan API request, see below.

The default number of rollback records kept can be increased while still keeping
trimming enabled, by setting nhz.maxRollback to a higher value (default and
lowest possible is 1441). This should provide a compromise for those who want to
keep history of more than the default 1441 blocks, yet want to avoid the
performance penalty of never trimming the derived objects tables.

To allow for the increased use of database, default max number of database
connection has been increased to nhz.maxDbConnections=30, lock timeout
increased to nhz.dbDefaultLockTimeout=60 and MVCC is enabled by default
in nhz-default.properties.

H2 cache size allocation is improved. If nhz.dbCacheKB is not set,
the H2 cache will vary linearly from 16MB for JVM heap size 160MB, to
256MB for heap size 640MB or higher. This should allow low end devices
to run without needing a custom setting for the nhz.dbCacheKB parameter,
and prevent excessive memory use on machines with plenty of memory too.

To prevent overloading a node with invalid peer addresses, the maximum total
number of known peers is limited to nhz.maxNumberOfKnownPeers (default 3000).
Once this number has been reached, new peer addresses are not added, and peers
that have been last connected to more than a week ago are removed from the known
peer list, provided the node has enough connected public peers, until the number
of known peers is again reduced to below nhz.minNumberOfKnownPeers (default
1000).

Enforce that the nhz-default.properties file used matches the version of the
current release.

Updated jetty to version 9.2.10.

UPnP refactored.

DbShell servlet:
A command line access to the H2 database at runtime is now possible at:
http://localhost:7776/dbshell
This page uses the H2 shell tool to allow querying the database at runtime,
directly from the browser, without having to enable auto server mode in the jdbc
url. The debug APIs which allow direct manipulation of the blockchain
database are always enabled, but are protected with a password, which needs
to be set in the nhz.adminPassword property. Password is not required when the
API server is listening on the localhost interface only (the default).
The password protection can be disabled by setting nhz.disableAdminPassword=true
in nhz.properties.

Test servlet:
The usability of the http://localhost:7776/test API access page has been improved.

Enhanced nhz.allowedBotHosts property to also accepts a range of addresses
using CIDR notation.

New API requests:

Monetary System/Currencies (feature not yet enabled):
currencyBuy, currencySell, currencyReserveIncrease, currencyReserveClaim, currencyMint,
getAllCurrencies, getAccountCurrencies, getAccountCurrencyCount, getCurrency, getCurrencies,
getCurrencyFounders, getCurrencyIds, getCurrenciesByIssuer, getCurrencyAccounts,
getCurrencyAccountCount, getExchanges, getExchangesByExchangeRequest, getExchangesByOffer,
getAllExchanges, getCurrencyTransfers, getBuyOffers, getSellOffers, getOffer,
getAccountExchangeRequests, getMintingTarget, issueCurrency, publishExchangeOffer,
transferCurrency, canDeleteCurrency, deleteCurrency, searchCurrencies

Accounts:
getAccountBlockCount, getAccountBlocks, getAccountLessors

Aliases:
getAliasCount, deleteAlias

Asset Exchange:
getAssetAccounts, getAssetAccountCount, getAssetTransfers, getAccountCurrentAskOrders,
getAccountCurrentBidOrders, getAllOpenAskOrders, getAllOpenBidOrders, searchAssets,
dividendPayment (not yet enabled)

Blocks:
getBlocks, getECBlock

DGS (feature not yet enabled):
getDGSGoodsCount, getDGSGoodsPurchases, getDGSGoodsPurchaseCount, getDGSPurchaseCount,
getDGSTags, getDGSTagCount, searchDGSGoods

Util:
longConvert

Debug:
clearUnconfirmedTransactions, fullReset, popOff, scan, luceneReindex

Network:
addPeer, blacklistPeer

getAccountBlocks - like getAccountBlockIds, but returning full block JSON.
If includeTransactions parameter is true, also includes the transaction JSON.

getAccountCurrentAskOrders and getAccountCurrentBidOrders -
like getAccountCurrentAskOrderIds and getAccountCurrentBidOrderIds, but returning
full order JSON.

getAllOpenAskOrders and getAllOpenBidOrders now replace getAllOpenOrders, but
only returning ask or bid orders respectively, and allow firstIndex/lastIndex
pagination.

getAssetTransfers - retrieves the asset transfers for an asset, account, or both,
sorted by height descending.

getAssetAccounts - accepts an asset parameter and returns all accounts holding
this asset as of the current height, and the asset quantity each one owns, sorted
by asset quantity descending.
Takes an optional height parameter to allow retrieving asset holders as of a
previous blockchain height.

getAccountLessors - retrieves the accounts that have leased their balance to the
specified account, takes an optional height parameter to allow querying previous
blockchain heights.

The historical height query feature in getAssetAccounts and getAccountLessors
depends on the specified height records still being available, i.e. either table
trimming disabled, or maxRollback set high enough to cover that height.

longConvert - an utility API to convert between signed long ids as used in the
database and unsigned long ids represented as strings. Accepts an id in either
form and returns both the signed and unsigned versions.

getECBlock - returns the ecBlockId and ecBlockHeight given an optional timestamp,
current time if not supplied.


New debug API requests:

The following requests are used for debugging purposes only and should not
normally be needed. They are protected with a password, which needs
to be set in the nhz.adminPassword property. Do not enable on a public node
where the API is accessible to anyone.

fullReset - delete and redownload the whole blockchain.

popOff - accepts a numBlocks or height parameters, and pops off that many blocks
or back to that height. If table trimming is enabled (default), at most 1440
blocks can be popped off. Derived object tables are rolled back to the specified
height and blocks and transactions after that height are deleted.

scan - accepts a numBlocks or height parameters, rolls back the derived object
tables to that height and rebuilds them by rescanning the existing blockchain
from that height up again. Does not delete blocks or transactions from the
blockchain, unlike the popOff request. A request to rescan more than 1440 blocks
when table trimming is enabled will do a full rescan starting from height 0.
Setting validate parameter to true will also re-verify signatures and re-valudate
blocks and transactions during the rescan.

Added clearUnconfirmedTransactions debug API to force clearing of the
unconfirmed transactions pool.

API changes:
The limit parameter is no longer accepted by the getAskOrderIds, getBidOrderIds,
getAskOrders and getBidOrders APIs, as firstIndex/lastIndex parameters are now
used instead for pagination.

New API calls for peer management: addPeer and blacklistPeer. AddPeer will add
a peer address or IP, optionally with port number, to the list of known peers
and will try to connect to it. BlacklistPeer (password protected) will
blacklist a peer, for the default blacklisting period.

The following existing APIs now allow optional pagination using firstIndex,
lastIndex parameters:

getAccountBlockIds, getAccountCurrentAskOrderIds, getAccountCurrentBidOrderIds,
getAccountTransactionIds, getAccountTransactions, getAliases, getAllAssets,
getAllTrades, getAskOrderIds, getAskOrders, getAssetIds, getAssetsByIssuer,
getBidOrderIds, getBidOrders, getDGSGoods, getDGSPendingPurchases, getDGSPurchases,
getTrades

The limit parameter is no longer accepted by the getAskOrderIds, getBidOrderIds,
getAskOrders and getBidOrders APIs, as firstIndex/lastIndex parameters are now
used instead for pagination.

getAccountBlockIds in addition to allowing pagination now returns the blocks
in descending order, as this is more useful when showing the newest blocks
on top in the client.

getTrades now accepts an optional account parameter, in addition to asset, to
allow retrieving trade history for a specific account, for either all assets or
a specific asset only.

getUnconfirmedTransactions and getUnconfirmedTransactionIds now also accept
the RS account number format.

The Trade JSON now includes buyer and seller account ids, the height at which
the trade occurred, the asset name, and the heights at which the ask and bid
orders were accepted in the blockchain.

The Asset JSON now includes total number of transfers, and number of accounts
holding the asset.

parseTransaction does not just return an error when trying to parse an invalid
transaction bytes or JSON, but adds a validate=false field, plus the actual error
message, in addition to the parsed transaction JSON.

getState no longer includes total effective balance.

Packaging changes:

To prevent intentional misunderstanding of why jar files hashes are never
reproducible, the class files are now left unpacked in a classes subdirectory
after compilation, instead of being packaged in a nhz.jar file. The run.sh and
run.bat scripts have been modified to include this directory on the classpath
instead of the nhz.jar file. Those who still prefer to build a nhz.jar file, can
easily do that with the included jar.sh script, and modify the classpath to use
it. A pre-built nhz.jar file will still be included for a few releases.

Checkpoints updated.

Please see source code for more details.

tl;dr

This is an experimental release. An upgrade is not mandatory, but recommended.

This release is the first release which stores all objects in the h2 database.
On a normal VPS the database upgrade can take up to 2.5 hours.

The fastest way (about 5 minutes, depends on download bandwidth) to upgrade to  
hz-v4.0e is to download the database, instead of upgrading or starting from scratch
with an empty database.

release files: https://github.com/NeXTHorizon/hz-source/releases/tag/hz-v4.0e
database file: http://hz-services.com/downloads/nhz_dbs/ 20150729-nhz_db-4.0e.zip
Pages: « 1 ... 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 [103] 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 ... 157 »
  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!