Skip to content

Instantly share code, notes, and snippets.

import pywaves as pw
import time
pw.setNode('https://apitnetworktest.blackturtle.eu','Turtle Network','l')
block = pw.lastblock()
addr = pw.Address(seed='seeeeeeeeedddddd heeeeeerrrrreeeeeeee')
while True:
try:
while block['height'] == pw.lastblock()['height']:
time.sleep(2)
# TN node settings in HOCON
# HOCON specification: https://github.com/lightbend/config/blob/master/HOCON.md
TN {
# Node base directory
directory = ${user.home}"/TN-testnet"
data-directory = ${TN.directory}"/data"
leveldb-cache-size = 256M
blockchain {
type: CUSTOM
custom {
@BlackTurtle123
BlackTurtle123 / ClientSpec output
Created June 6, 2018 11:08
ClientSpec test issue
[info] ClientSpec:
2018-06-06 13:04:01,066 TRACE [ning-ClientSpec] c.w.n.HandshakeTimeoutHandler - [embedded embedded] Scheduling handshake timeout, timeout = 1 minute
2018-06-06 13:04:01,071 TRACE [time-impl-497] scorex.utils.TimeImpl - Adjusting time with 0 milliseconds.
[info] - should send only a local handshake on connection (23 milliseconds)
2018-06-06 13:04:01,090 TRACE [ning-ClientSpec] c.w.n.HandshakeTimeoutHandler - [embedded embedded] Scheduling handshake timeout, timeout = 1 minute
[info] - should add a server's channel to all channels after the handshake only *** FAILED *** (49 milliseconds)
[info] false was not equal to true (ClientSpec.scala:53)
[info] org.scalatest.exceptions.TestFailedException:
[info] at org.scalatest.MatchersHelper$.indicateFailure(MatchersHelper.scala:340)
[info] at org.scalatest.Matchers$AnyShouldWrapper.shouldBe(Matchers.scala:6864)