Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Chris Stewart
    @Christewart
    because bitcoind is the thing that sends out the zmq event, bitcoin-s-core can only readi t
    Matt Campbell
    @mecampbellsoup
    @Christewart isn't bitcoin-s-core the bitcoind-like backend?
    Matt Campbell
    @mecampbellsoup
    so therefore bitcoin-s-core would (after this is implemented) send out the zmq messages?
    Chris Stewart
    @Christewart
    no it was still only read, but it needs a data source to test from which is bitcoind right?
    i'm just thinking of how to test it i guess, not actually using it in prod
    Matt Campbell
    @mecampbellsoup
    @Christewart not sure i'm following. seems like we should be using bitcoin-s-core as the data source...
    Chris Stewart
    @Christewart
    bitcoin-s-core does not directly interface with the p2p network right now
    you can build that functionality if you would like and then we can be data the data source :-)
    there is some prelimary stuff done in bitcoin-s/bitcoin-s-spv-node like p2p messages
    handshake etc
    Chris Stewart
    @Christewart
    @mecampbellsoup ^
    Pierre-Marie Padiou
    @pm47
    @Christewart yup we are stuck with 2.11 for now (because android runs java 1.7...)
    sken
    @sken77
    i hope Chris still visits here
    i forked bitcoin-s to make it work in bch looking forward to do that
    Chris Stewart
    @Christewart
    hey whats up @floreslorca ! You should probably wait, there is going to be other coins open sourced soon
    (TM) lol
    sken
    @sken77
    lmao
    ill pester you from time to time. its all for a greater cause at the end of the day ;)
    Chris Stewart
    @Christewart
    Gemini used bitcoin-s for their cryptocurrency stack, and I helped them add support for these coins. Not sure when they are launching them but they were approved by their regulators in NY
    They are planning on open sourcing after they launch the coins i believe
    sken
    @sken77
    you mean they have an bitcoin-s implementation already?
    like a full node?
    Chris Stewart
    @Christewart
    nope, rpc client
    sken
    @sken77
    i see. how did they approach you for this? congrats man :)
    Chris Stewart
    @Christewart
    They just pinged me one day and said they were looking to migrate away from bitcoinj :-)
    and asked if i was interested in helping them integrate bitcoin-s and i said yes.
    @floreslorca More bitcoin-s development has been happening in our suredbits slack, if you want to follow along / contribute: https://join.slack.com/t/suredbits/shared_invite/enQtNDEyMjY3MTg1MTg3LTYyYjkwOGUzMDQ4NDAwZjE1M2I3MmQyNWNlZjNlYjg4OGRjYTRjNWUwNjRjNjg4Y2NjZjAxYjU1N2JjMTU1YWM
    sken
    @sken77
    so they have their own fork or are they using your releases?
    Chris Stewart
    @Christewart
    own internal fork
    sken
    @sken77
    how is surebits coming along? you are focusing more in LN right now rihgt?
    Chris Stewart
    @Christewart
    Yes, we are offering APIs monetized with the lightning network. We have an API for the NFL at the moment and are workign on adding other APIs
    sken
    @sken77
    im in slack
    Amorsolo Soloista
    @ASoloista_twitter

    Hello

    Is it ok to use this lib for regtest?

    Amorsolo Soloista
    @ASoloista_twitter
    or do i need to configure something? like network thingy?
    philbertw4
    @philbertw4
    @Christewart the slack invite link is no longer active. Will you please provide a new one so some of us can join slack? Thanks!
    Chris Stewart
    @Christewart
    @ASoloista_twitter Yes this library is fine to use for regtest
    dsapaev
    @dsapaev
    Hi! Anybody here? I have a problem with bitcoin-s
    rpcCli
    .getAddressInfo(BitcoinAddress("3EHFYhtgSvWAyDusrQHBEQnqDkhayCXLiz").get)
    .onComplete(
    addresInfo => println(addresInfo.get)
    )
    this code throws an error
    [bitcoind-rpc-client-created-by-bitcoin-s-akka.actor.default-dispatcher-2] ERROR o.b.r.c.c.BitcoindRpcClient - Error when parsing result of 'getaddressinfo': {"obj":[{"msg":["error.expected.jsobject"],"args":[]}]}!JSON: null
    java.lang.IllegalArgumentException: Could not parse JsResult: null! Error: Error when parsing result of 'getaddressinfo': {"obj":[{"msg":["error.expected.jsobject"],"args":[]}]}!
    at org.bitcoins.rpc.client.common.Client.parseResult(Client.scala:348)
    at org.bitcoins.rpc.client.common.Client.$anonfun$bitcoindCall$2(Client.scala:264)
    at scala.util.Success.$anonfun$map$1(Try.scala:255)
    at scala.util.Success.map(Try.scala:213)
    at scala.concurrent.Future.$anonfun$map$1(Future.scala:292)
    at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
    at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
    at scala.concurrent.impl.CallbackRunnable.run$$$capture(Promise.scala:64)
    at scala.concurrent.impl.CallbackRunnable.run(Promise.scala)
    at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)
    at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:92)
    at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
    at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:85)
    at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:92)
    at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:41)
    at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:49)
    at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
    at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
    at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
    Chris Stewart
    @Christewart
    @dsapaev Sorry, just seeing this! Can you file an issue
    What version of bitcoind are you using?
    Chris Stewart
    @Christewart
    @dsapaev I filed an issue for you: bitcoin-s/bitcoin-s#1628
    Nadav Kohen
    @nkohen
    @dsapaev I opened a PR that hopefully fixes this issue bitcoin-s/bitcoin-s#1679 could you verify?
    pedr0-fr
    @pedr0-fr
    Hi, I am getting a runtime error when using bitcoin-s inside Java.
    import org.bitcoins.core.protocol.transaction.Transaction;
    import org.bitcoins.core.protocol.transaction.Transaction$;
    import scodec.bits.ByteVector;
    import scodec.bits.ByteVector$;
    import javax.xml.bind.DatatypeConverter;
    
    public class TransactinDecoding {
    
        public static void main(String[] args){
            String rawTx = "02000000000101762ebd86db44c998e8c55dfabbb6aa5faf0fdb0a90e3f98bbb968dc0339f7f0101000000171600146cb11acd9881d191a64c2d96515c1cf9df56ddc6feffffff029ae400000000000017a914886d7f57a39af53636290380a251ea3dd3a0c43287bae7ef000000000017a91444211c7b7bc0a569e15eb62bee84368098c8d9ed870247304402200514cf8d00571c0cbcf76269bd3d2f1fcaeb4a725e28e01da4125d30fc951ba402200595bb9441b4917386b6a71a8ef33a24bfa99d35230be61980442d479adcabf001210288ae983ed76a8336dcbcc31367d0b0436957b1272a46e958d906ef2ac525e0250ceb0900";
            byte[] serialized = DatatypeConverter.parseHexBinary(rawTx);
            ByteVector byteVector = ByteVector$.MODULE$.apply(serialized);
            Transaction scalaTx = Transaction$.MODULE$.fromBytes(byteVector);
    
            System.out.println(scalaTx.totalSize());
            System.out.println(scalaTx.vsize());
        }
    }
    I'm getting
    Exception in thread "main" java.lang.NoSuchMethodError: scala.runtime.ScalaRunTime$.wrapByteArray([B)Lscala/collection/immutable/ArraySeq;
        at org.bitcoins.core.protocol.transaction.WitnessTransaction$.<clinit>(Transaction.scala:313)
        at org.bitcoins.core.protocol.transaction.Transaction$.fromBytes(Transaction.scala:118)
        at co.bitpost.api.TransactinDecoding.main(TransactinDecoding.java:22)
    My maven dependencies include:
    <dependency>
          <groupId>org.scala-lang</groupId>
          <artifactId>scala-library</artifactId>
          <version>2.13.3</version>
        </dependency>
        <dependency>
          <groupId>org.bitcoin-s</groupId>
          <artifactId>bitcoin-s-core_2.13</artifactId>
          <version>0.4.0</version>
        </dependency>
    Any idea what I can do to fix it?