Giter Site home page Giter Site logo

ark-java's People

Contributors

alexbarnsley avatar bhaaltazar avatar christopherjwang avatar dafty avatar eugeneli avatar faustbrian avatar fix avatar guppster avatar j-a-m-l avatar kristjank avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ark-java's Issues

Network.warmup() crashes on gradle/android app

Caused by: groovy.lang.MissingPropertyException: No such property: ip for class: io.ark.core.Peer
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:53)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$NoParamSite.callConstructor(ConstructorSite.java:127)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
at io.ark.core.Peer.create(Peer.groovy:24)

Recompile for Java 7

Recompile using 1.7 for greater compatibility with older projects.

For example, this library doesn't work on Android right now.

createSecondSignature Transaction problem

Have problem with setting up second passphrase:
Transaction.createSecondSignature("passphrase2", "passphrase")
Get message:

Transaction not accepted by network:
[success:false, message:Invalid transaction detected, error:TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.]

Checked `Transaction.class:
static Transaction createSecondSignature(secondPassphrase, passphrase){
def tx = new Transaction(type:1, amount:0, fee:500000000)
tx.asset.signature = BaseEncoding.base16().lowerCase().encode(Crypto.getKeys(secondPassphrase).getPubKey())
tx.timestamp = Slot.getTime()
tx.sign(passphrase)
tx.id = Crypto.getId(tx)
return tx
}

We haven't data types set for parameters, set to String but got same message.

gradle build failing with wrapper script

I was attempting to run ./gradlew build with the packaged wrapper script when i encountered this error:

The following model rules are unbound:
  model.components
    Mutable:
      - components (java.lang.Object)

Create stub node for integration tests

Tests currently uses live networks to test, eg:

def result = peer << transaction
  then:
  result.error == "Account does not have enough ARK: AGeYmgbg2LgGxRW2vNNJvQ88PknEJsYizC balance: 0"

sending some Ark to that address will cause a lot of tests to fail.

result.get("success") == true
result.get("count").equals("2") //Count doesnt include filtering from api call
(result.get("transactions") as List).size() == 2

or sending a tx to this address will cause this to fail.

We should create a stub node with the same validation on ark-node, but provide controlled variables (balance, votes, transactions, etc) and replace affected tests to use that instead.

Rename maven group & artifactid

<groupId>io.ark.lite</groupId>
<artifactId>client</artifactId>

Doesn't seem right. The artifact does not describe the package, and will appear as "client-0.4.jar" when used as a dependency in a project.

It would be better if it was changed to

<groupId>io.ark</groupId>
<artifactId>ark-java</artifactId>

Probably a good candidate for 1.0.0 since we would be changing to semantic versioning at the same time.

Unpredictable testing output

I have been running the test suite and running into Connection to {ip} refused on different tests each time. When run repetitively, it's a random chance to get a pass or fail. Sometimes all tests pass, sometimes random ones fail to connect

This is pretty bad because i don't know if my code changes broke the library or not.

Vote Transaction problem

For exampe try to vote for arkpool.
Transaction.createVote(["+02b1d2ea7c265db66087789f571fceb8cc2b2d89e296ad966efb8ed51855f2ae0b"], passphrase)

I get:
Transaction not accepted by network:
[success:false, message:Invalid transaction detected, error:Invalid recipient]

Why Invalid recipient? We have only two parameters in Transaction.createVote() method, votes array and passphrase. Can somebody check it works or not, seems a bug.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.