Skip to content

Releases: BTWhite/go-btw-photon

Snapshot 0.2

07 Sep 17:53
Compare
Choose a tag to compare
Snapshot 0.2 Pre-release
Pre-release

Transactions sync

This release is intended for testers and developers, you can also download it.

Changes

  • Fix windows command line colors.
  • Fixed some bugs with API responses
  • The tx.post method is renamed to tx.create
  • Created a new method tx.post for security and synchronization
  • Created a new method chain.load for synchonization chains

Description

Now if you add a node to the config, your transactions will reflect on it. If the recipient does not have a complete chain, he will use chain.load until he loads the chain before the transaction is sent.
For testing, you can run two nodes at the same time, you just need to change the port and the folder with the database:
./bin.exe -data data2 -http-port 8886

If you find a problem with the logic of chain synchronization, please create a issue

Snapshot 0.1

03 Sep 20:43
Compare
Choose a tag to compare
Snapshot 0.1 Pre-release
Pre-release

First snapshot for developers.

This release is intended for testers and developers, you can also download it.

Change port

You can also change the port to any other port by specifying the -port switch on startup
For example:

./bin -port 8880

JSON-RPC

The archive contains test.html, which allows you to call API methods. Just open this file using your browser.
For example:

Method:

tx.get

Params:

{
	 "id": "ecd23f34f831d40958a63d62aaf72dc375ad349e5d89306953ad7437b3c05c61"
}

Result:

{
	"id": 0,
	"result": {
		"id": "ecd23f34f831d40958a63d62aaf72dc375ad349e5d89306953ad7437b3c05c61",
		"senderPublicKey": "0000000000000000000000000000000000000000000000000000000000000000",
		"senderId": null,
		"recipientId": "B0AoqtQfSZyfCex8q4fGwMAFEQbcDt4mZfP",
		"amount": 6000000000000000,
		"fee": 0,
		"signature": "0000000000000000000000000000000000000000000000000000000000000000",
		"timestamp": 1535500800,
		"nonce": 0,
		"height": 1,
		"chain": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
		"previousTx": null
	}
}