Hot answers tagged

6

Each record represents one transaction which was newly received by the node. I'll take apart one single line (which represents this transaction - so you can compare the values there). The Java code in iri that builds these tx messages is here. tx - this is a transaction received ...


5

(This is specific to linux) To dump all iri process threads, one can issue the following command: jstack -l <pid of iri java process> Search for the named thread of interest. Example: test@test:~$ pgrep -l java 10783 java test@test:~$ jstack -l 10783 > /tmp/thread_dump.log test@test:~$ du -s /tmp/thread_dump.log 212 /tmp/thread_dump.log ...


3

The method you mentioned converts each byte into 5 trits, so the output array needs to be 5 times the length of the input array. Note that this function is not suitable for encoding any byte combinations, as bytes with value 243 to 255 will result in an error. It is only suitable for converting bytes back into trits, which have been converted from trits to ...


3

Ok, so after trying to reinvent a wheel for a while I actually discovered this class - https://github.com/iotaledger/iri/blob/dev/src/main/java/com/iota/iri/storage/rocksDB/RocksDBPersistenceProvider.java which provides an abstraction from underlying RocksDB and contains all the settings necessary to access the data in the proper way. ...


2

The IOTA Foundation is working hard in documenting all the aspects of IOTA by this days. You might want to wait a bit: new website coming soon and maybe the way documentation is handled will change. As of today I would say that the official doc is https://iota.readme.io/


2

Since iota.lib.java is a community effort (not written by the foundation), I assume a MAM library would have to be written by the community as well. – mihi♦


1

The Java library is quite picky about length of fields you set. In particular, the address has to be 81 trytes and both tag and obsoleteTag need to have 27 trytes. If the lengths are different (or these fields are empty), you get weird signing errors. Changing the address to "999999999999999999999999999999999999999999999999999999999999999999999999999999999" ...


1

If you want to run your own full node, you'll use iri (or Nelson, or both). If you want to program something in Java that should connect to a full node (i. e. is a light node), you use iota.lib.java. If you want to implement it in JavaScript (in-browser or node.js) you'd use iota.lib.js.


Only top voted, non community-wiki answers of a minimum length are eligible