Bitcoin Forum
September 26, 2023, 03:29:14 PM *
News: Latest Bitcoin Core release: 25.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 3 4 »
1  Bitcoin / Bitcoin Technical Support / Bitcore help: Method not found on: July 23, 2017, 10:28:38 AM
Im trying to get a full bitcore node running.  Ive downloaded, un tar, and copied the binaries to /usr/bin on Ubuntu

My ~./bitcore/bitcoin.conf has the new flags
Code:
addressindex=1
timestampindex=1
spentindex=1

Then started the node:
Code:
bitcoind -daemon -reindex

But still cant get the new RPC methods to work.  Any ideas? https://bitcore.io/guides/bitcoin#new-rpc-methods-and-updates
2  Bitcoin / Bitcoin Technical Support / Bitcoind not starting 0.13.2 on Azure on: February 27, 2017, 03:37:13 AM
My node on MS Azure has fallen over and won't start.  It does the "verifying blocks" for a while, then nothing.  I've checked disk space and seems to be heaps.  debug.log is empty.  Any ideas?

Code:
azureuser@xxx:~$ bitcoin-cli getinfo
error code: -28
error message:
Verifying blocks...
azureuser@bitcoinaa3:~$

Code:
azureuser@xxx:~$ sudo df
Filesystem     1K-blocks      Used Available Use% Mounted on
udev              837820         0    837820   0% /dev
tmpfs             171540     17848    153692  11% /run
/dev/sda1       29711408   5097308  24597716  18% /
tmpfs             857692         0    857692   0% /dev/shm
tmpfs               5120         0      5120   0% /run/lock
tmpfs             857692         0    857692   0% /sys/fs/cgroup
none                  64         0        64   0% /etc/network/interfaces.dynamic.d
/dev/sdc1      257898884 112919244 131872492  47% /media/blocks
tmpfs             171540         0    171540   0% /run/user/1000
3  Bitcoin / Project Development / BitPoker.io Update #2 on: December 26, 2016, 11:42:12 PM
After looking at a few other projects like Augur, Im pretty confident that Iíve got a scaleable design thats inline with a lot of other DAPs.  Iíve been refactoring the messages protocol to use JSON RPC 2.0 protocol.  Peers will communicate to each other via HTTP GETs or POSTs.  Using this design will allow the solution to be module and written using .Net or .Net Core Owin / Katana controllers or a NodeJS client.

A lot of work has gone into the project, making the solution modular and have the ability to inject in mocks.  This will enable better testing and hopefully more developers.  I've taken a full TDD approach at the moment, focusing just on the core logic in the controllers.  A thin UI client will come later.

At the moment, Im not working about any network discovery code to find peers.  There will be a centralised api at www.bitpoker.io/api where clients will ďregisterĒ their addresses.  This is only a temporary solution and can be thought of as a seed.

Iíve also had a conversation with the colour coin exchange Lykke.com, to perhaps to create an ICO using colour coin tokens for anyone wanting to contribute to the project.

Finally, also investigating protocols like WebRTC in parallel.

www.bitpoker.io
4  Bitcoin / Bitcoin Technical Support / libboost_program_options.so.1.54.0: cannot open shared object file on: December 22, 2016, 04:15:05 AM
I recently upgraded my Ubnutu 14 desktop to 16.04 LTS.

When I attempt to start bitcoind from terminal, I get this error

xx@xx:~$ bitcoind
bitcoind: error while loading shared libraries: libboost_program_options.so.1.54.0: cannot open shared object file: No such file or directory

Thinks I've tried:
Removing the bitcoind package and the lib boost package
Adding them back
apt-get updates

Some are saying on other forums its a symbolic link problem, but haven't been abled to solve it.  We are down one node because of this error Sad
5  Bitcoin / Project Development / Copay c# .Net port on: December 14, 2016, 02:18:33 AM
I've decided to list this project on UpWork https://www.upwork.com/jobs/~01ddf90e1e47037663.  Im trying to develop just enough code so a .Net app, such as a website, can Join and make a payment proposal.

All the code will be contributed back as open source, via the repo https://github.com/bitcoinbrisbane/copay.net

Quotes to do the work are between $200 and $500.  If anyone would like to donate some btc to help fund this project, the address is bitcoin:3EnX8t6u3ng5jhA9vju4AzQuoN9tLPyB6N

Thanks!
6  Bitcoin / Project Development / [Bounty] Looking for .Net C# help to port JS on: November 16, 2016, 04:05:39 AM
Im looking for some help to port bitcodes wallet client from JS to c#.  The idea is that my website can join a 2 of 3 Copay wallet, and raise payment proposals. There are 3 high level methods.

  • Create invite code (done)
  • Join wallet - doJoinWallet (halfway)
  • Create payment proposal

Happy to pay a reasonable bounty on each. Not too much, ss it will be an open source project that the community might benefit from.  Ill pay on pull request, and if unit tests pass which match the JS unit tests.

https://github.com/bitpay/bitcore-wallet-client

My Repo is https://github.com/bitcoinbrisbane/copay.net
7  Bitcoin / Project Development / c# .net CoPay client on: November 02, 2016, 10:03:17 PM
I've been reverse engineering the bitcore wallet client, in c#.  The idea is to make a c# client that hits their api (or your own hosted bitcode).

So far I've managed to create a wallet and send out a msig invite.   The goal is to be able to create, join and make payment proposals in .net.  Ill put the code in GitHub soon, but was hoping someone here could help.

https://github.com/bitpay/bitcore-wallet-client
https://github.com/bitpay/bitcore-wallet-service
8  Bitcoin / Project Development / BitPoker.io Update #1 on: October 19, 2016, 12:36:55 AM
I've decided to start doing monthly updates on my side project BitPoker.  This is project is being developed outside of the paid work, running the meetups being on the BAA board, other side projects and being a Dad.  Distributed poker has been talked about for a number of years.  A good paper about turn based games using the blockchain was also recently published.  Poker is a great example of turn based game, where actors participating in the game, reach consensus.  I believe With lighting network, the project is now possible.

People often say that the blocks are too slow for games.  I disagree.  Just like light night network doesn't broadcast each tx to the network all the time, the game turns are not required to be broadcast to the the blockchain.  Only the actors participating *care* about the turns.

Code is being developed in c# as a PoC, and the https://www.github.com/bitcoinbrisbane/bitpoker repo is a mess.  Im happy for constructive comments, pull requests are even better.

I will focus on heads up no limit texas holdem for the first "contract".  Its easier for betting / multisig and anti collusion.

I managed to secure the domain www.bitpoker.io and have been working on crystallising my thoughts in the <a href="https://github.com/bitcoinbrisbane/BitPoker/blob/master/README.md">ReadMe</a>.  I've reached out to a few Math professor colleagues to review the cryptography, mainly the shuffling algorithm.  I thought of the algorithm myself, and then found it in a book after.  My professors have suggested a few more elegant methods which I will look at shortly.

I'm not actively seeking investment either, but I've made <a href="http://coloredcoins.org/explorer/asset/Ua9V5JgADia5zJdSnSTDDenKhPuTVc6RbeNmsJ">10,000,000 colour coin tokens</a> which I'll pass on to any contributors or supporters.

Colour coin asset id <a href="http://coloredcoins.org/explorer/asset/Ua9V5JgADia5zJdSnSTDDenKhPuTVc6RbeNmsJ">Ua9V5JgADia5zJdSnSTDDenKhPuTVc6RbeNmsJ</a>
https://www.bitpoker.io/assets.txt
9  Bitcoin / Meetups / Australian Halving Parties! on: July 06, 2016, 12:40:42 AM
Brisbane Sunday 10th July http://www.meetup.com/BitcoinBrisbane/events/231642331/
Melbourne Friday 8th July http://www.meetup.com/BitcoinMelbourne/events/232218427/
Sydney see meetup.com
10  Bitcoin / Wallet software / Is this TX possible (Using NBitcoin c#) on: July 06, 2016, 12:18:41 AM
Senario:
Alice has coloured coins (but no bearer tokens)
Bob has bearer tokens

Create a TX to send colour coins from Alice to Carol, with Bob paying the miners fee.

Bitcoin (bearer) change to go back to Bob
Colour coin change to go back to Alice

Here is my attempt:

Raw tx
01000000015c9aed0920c7ea31f867d1c2ead3d01a68b1c37929adfe54f363f340e08cd69400000 0006b483045022100b85cd1009a7d5efe8078c0fe2eb52ebbb6944b92ab655a988bf867dbcdac27 8002206c60f54f027586f6618f357b47c5240f5a24eb9917ba1a513d3e2d31fa700e06012102a34 dd7375accc0201e829eb28d40bafd0add18134b1ea30dff56ef79814e0124ffffffff0300000000 000000000c6a0a4f41010002a846e80700aa0a0000000000001976a914b7c2e22206fcd3eee3cbf a2fd423892355e5114488acaa0a0000000000001976a91467bac1ccbfab92c978a7549971a24f30 97038f9688ac00000000

Code:
protected BE.Models.ITransactionBroadcastResponse Transfer(BitcoinAddress fromAddress, BitcoinAddress toAddress, BitcoinAddress agentAddress, IEnumerable<ICoin> bearer, ICoin colored, AssetMoney assetToSend, AssetMoney autarkyFee, AssetMoney agentFee)
{
try
{
//Apps private key
BitcoinSecret bearerKey = new BitcoinSecret(this.BearerKey);
                BitcoinSecret assetOwnerKey = new BitcoinSecret(this.AssetOwnerKey);

TransactionBuilder txBuilder = new TransactionBuilder();
txBuilder
.AddKeys(bearerKey)
.AddCoins(bearer)
                    .AddKeys(assetOwnerKey)
.AddCoins(colored)
.SendAsset(toAddress, assetToSend)
//.SendAsset(agentAddress, agentFee)
//.SendAsset(AutarkyBitcoinAddress, autarkyFee)
                    .SetChange(AutarkyBitcoinAddress, ChangeType.Uncolored) //was from address
                    .SetChange(fromAddress, ChangeType.Colored)
.SendFees(this.MinersFee);

Transaction tx = txBuilder.BuildTransaction(true);
Boolean ok = txBuilder.Verify(tx);

if (ok == true)
{
#if DEBUG
                    String hex = tx.ToHex();
#endif
String response = NetworkClient.BroadCastTx(tx.ToHex());
return new BE.Models.NodeTransactionResponse() { status = "ok", data = response };
}
else
{
                    //TODO MAKE TX INVALID EXCEPTION
//return new Models.TransactionErrorResponse() { status = "Error", data = "The transaction is invalid" };
throw new Exception();
}
}
catch (Exception ex)
{
//return new Models.TransactionErrorResponse() { status = "Error", data = "The transaction is invalid.  " + ex.Message };
throw ex;
}
}
11  Bitcoin / Wallet software / Restore a hive wallet on: May 26, 2016, 10:24:53 AM
A friend had a hive wallet, on my recommendation.  Now hivewallet.org is closed and he's lost the app, how can I restore if I have the 12 words?

I tried using counter wallet or and old copy of brainwallet.org but doesnt match.
12  Economy / Web Wallets / How to get ExtPubKey from CoPay wallet? on: April 07, 2016, 10:42:23 PM
I want to provide someone my HD ExtPubKey from copay, so they can pay me to a new HD address.  On Copays wallet, I see and advanced option, but no way to export the ExtPubKey.

Can it be derived from an address itself?
13  Bitcoin / Development & Technical Discussion / Anyone developing for Lightning network? on: April 02, 2016, 10:29:59 PM
I have a few questions from the paper id like to discuss.

https://lightning.network/lightning-network-paper.pdf
14  Bitcoin / Bitcoin Discussion / How good is prune mode! on: February 24, 2016, 12:17:21 PM
I literally last night moved a lot of my coins off core to a copay wallet because my mac had run out of disk.  I wake up this morning and read the awesome news!

Installed, changed the bitcoin.conf file, started core, about 1min later I had reclaimed 55GB.

Thanks core devs!

15  Bitcoin / Meetups / Brisbane, Australia meetup Friday 26th Feb 2016 on: February 18, 2016, 02:07:16 AM
RSVP at meetup.com/bitcoinbrisbane
16  Bitcoin / Development & Technical Discussion / Pruning questions on: February 11, 2016, 10:35:51 AM
On my bit nodes hardware, I only have a 64gb card.  I upgraded the client to 0.11.2

Ive set prune 50gb via prune=50000

However, seems to be more like 5gb.  Anyone else seen this?
17  Bitcoin / Bitcoin Discussion / Some block size questions on: February 11, 2016, 10:25:22 AM
When was the 1mb introduced?  My understanding because of spamming attack early on.

Why 75% consensus? 
That is of nodes who have implemented a change in protocol? 
How is that figure calculated and agreed upon?
Once consensus is reached, and nodes running that protocol version drop less than 75%, the BIP is still remains right?

18  Bitcoin / Project Development / [ANN] Get Paid In Bitcoin (www.getpaidinbitcoin.com.au) on: December 18, 2015, 11:33:21 PM
Im am excited to announce Get Paid In Bitcoin for Australian residents.  Users can allocate part of their wages to be paid to be paid in bitcoin!  We hope this service will assist users becoming unbanked, and help users break the dependancy on banks.

Who are we?
Get Paid in Bitcoin is an Australian Company, ACN 167 096 415 ABN 24 167 096 415 http://abr.business.gov.au/SearchByAbn.aspx?SearchText=167+096+415

Both Adam and I have been involved in bitcoin for a number of years, and are both board members of the Bitcoin Association of Australia

You can email us at info@getpaidinbitcoin.com.au or bit message at BM-2cSuP6umWqxjLN7CBYK2qT8FvQhfqmyNVK.  All other contact info can be found on the home page.  PGP encrypted mail coming soon.  Public keys will be published in the contact section of the home page.

You can also speak to me in person at the Brisbane meetup, www.meetup.com/bitcoinbrisbane

Like anyone in this space, we encourage you to do your due diligence first.  We are happy to answer any emails, phone calls or chats in person, and won't be offended if you start using our service with a small amount of $AUD.

What we do
Put simply, we take part of your fiat wage purchase and transfer the equivalent about of bitcoin to your nominated addresses.  This can be split to a number of address, so that you can send to cold storage, a "day to day" wallet, or a card like CoinJars swipe card for easy spending.

Fees and rates
A flat fee of $1AUD for each deposit is charged.  There is a 10% discount for Bitcoin Association of Australia Members
.  We are also developing promotions and refer a friend incentives to reduce this fee. 

All rates are shown on the home page, and updated every 60seconds.  On the dashboard page you can also check the purchase rate.

Q&A
Happy to answer any questions and take feedback here.

Updates
This thread will be used for support queries and to announce new features.  Details on our sprints, releases and feature roadmap can be found at www.getpaidinbitcoin.com/home/news

The next feature we are developing is paying out to HD wallets for extra privacy.  This will be announced via the news page and here once completed.

[Update Sprint 4]
We did not consume as many story points as we would have liked this sprint. Most of the development effort was around finalising the branding, and making the dashboard as intuitive as possible. New drop down menus and modals have been added to try and achieve this goal. Other minor bugs where fixed, including some jQuery issues stoping the site rendering correctly on mobile devices.
19  Bitcoin / Mining support / Cron job to start and stop bitmain s3 on: October 27, 2015, 10:53:24 PM
Sorry if this should go in mining:  How would i make cron job to start and stop my s3 miner at certain times?
20  Alternate cryptocurrencies / Altcoin Discussion / Help with NBitcoin (C#) transfering an asset (0.1BTC bounty) on: September 21, 2015, 09:10:09 PM
I've been working with Nicolas to help get this done, but I think hes pretty busy.

I've got code to Issue colour coins from Bob to Alice.  However, I cant get a transfer of the assets.

Bob -> 20 Gold -> Alice
Alice -> 10 Gold -> Doof

This is where Im getting stuck.  After the tx builder I get a valid tx hash.  However if I broad cast nothing happens.  Some code snippets, sorry for the commenting, been trying lots of different approaches.

Ill pay once working code is submitted.  Im using blockr or coinprism as a repo to get the txs.   Happy to hard code a tx hash and script sig to pay the bounty, as long as I can retrieve new ones in the future from my repo.

Notes:
INetwork just calls my bitcoin-core client

Some test keys

Code:
           const String BobAddress = "mxSimcis5yCPkBaFZ7ZrJ7fsPqLXatxTax";
            const String BobAssetAddress = "bX8Qc1nYCZT65cRjcbjg2wyaSjSWhY2gB5p";
            const String BobWIFKey = "cMdLBsUCQ92VSRmqfEL4TgJCisWpjVBd8GsP2mAmUZxQ9bh5E7CN";

            const String AliceAddress = "muJjaSHk99LGMnaFduU9b3pWHdT1ZRPASF";
            const String AliceAssetAddress = "bX5Gcpc75cdDxE2jcgXaLEuj5dEdBUdnpDu";
            const String AlicePrivateWIFKey = "cPKW4EsFiPeczwHeSCgo4GTzm4T291Xb6sLGi1HoroXkiqGcGgsH";

assetId = "oLcV5F6R59zbChoTBQ962Har24tAnhbtHo";

Code:
public string Transfer(String fromAddress, Int64 amount, String toAddress, String assetId, INetwork network)
        {
            //Get bitcoin balance, 0.0006 is required
            Decimal fundingBalance = 0;

            const Decimal BITCOIN_TRANSACTION_FEE = 0.00006M;

            NBitcoin.BitcoinAddress bitcoinToAddress = new BitcoinAddress(toAddress);
            NBitcoin.BitcoinAddress bitcoinFromAddress = new BitcoinAddress(fromAddress);

            //UTXOS
            EP.Repository.ColourCoinTransaction.CoinPrism txRepo = new Repository.ColourCoinTransaction.CoinPrism(true);
            var ccutoxs = txRepo.GetTransactions(fromAddress);
            var utxos = txRepo.Get(fromAddress).Where(ux => ux.value > 10000).ToList();

            //hard coded, worked but didn't send assets
            //transaction_hash
            //var coin = new Coin(fromTxHash: new uint256("f131c91b3ce35f83258a3db54f5547daecc2a61142f598a39a8491ed2844eb28"),
            //    fromOutputIndex: 0,
            //    amount: Money.Satoshis(3000), //20000
            //    scriptPubKey: new Script(Encoders.Hex.DecodeData("76a914b9ad2f3f358c24ec207abf72125790e67301284488ac")));

            //var forfees = new Coin(fromTxHash: new uint256("a86a907f36071754ff4fdc4e27de4ec92272f239de5236af5f4806133ac66d0f"),
            //    fromOutputIndex: 0,
            //    amount: Money.Satoshis(97322000), //9957600
            //    scriptPubKey: new Script(Encoders.Hex.DecodeData("76a914b9ad2f3f358c24ec207abf72125790e67301284488ac")));



            var coin = new Coin(fromTxHash: new uint256("dc19133d57bf9013d898bd89198069340d8ca99d71f0d5f6c6e142d724a9ba92"),
                fromOutputIndex: 0,
                amount: Money.Satoshis(199867600), //20000
                scriptPubKey: new Script(Encoders.Hex.DecodeData("76a914b9ad2f3f358c24ec207abf72125790e67301284488ac")));

            var forfees = new Coin(fromTxHash: new uint256("302290290074826991bb936c157ef1e5be2882e975154d31b985ae8a26dd3161"),
                fromOutputIndex: 2,
                amount: Money.Satoshis(20000), //9957600
                scriptPubKey: new Script(Encoders.Hex.DecodeData("76a914b9ad2f3f358c24ec207abf72125790e67301284488ac")));


            //var coin = new Coin(fromTxHash: new uint256(utxos[0].transaction_hash),
            //    fromOutputIndex: utxos[0].output_index,
            //    amount: Money.Satoshis(60000), //20000
            //    scriptPubKey: new Script(Encoders.Hex.DecodeData(utxos[0].script_hex)));

            //var forfees = new Coin(fromTxHash: new uint256(utxos[1].transaction_hash),
            //    fromOutputIndex: utxos[1].output_index,
            //    amount: Money.Satoshis(60000), //20000
            //    scriptPubKey: new Script(Encoders.Hex.DecodeData(utxos[1].script_hex)));


            BitcoinAssetId assetIdx = new BitcoinAssetId(assetId, Network.TestNet);
            var alice = NBitcoin.BitcoinAddress.Create(toAddress, NBitcoin.Network.TestNet);

            ulong u = Convert.ToUInt64(amount);
            ColoredCoin colored = coin.ToColoredCoin(assetIdx, u);

            //var satoshi = Key.Parse(, Network.TestNet);
            string aliceWIF = "cPKW4EsFiPeczwHeSCgo4GTzm4T291Xb6sLGi1HoroXkiqGcGgsH";
            var satoshi = Key.Parse(aliceWIF, Network.TestNet); ;

            var txBuilder = new TransactionBuilder();
            var tx = txBuilder
                .AddKeys(_key.PrivateKey)
                //.AddCoins(forfees, colored)
                .AddCoins(forfees)
                .AddCoins(colored)
                .SendAsset(alice, new AssetMoney(assetIdx, u))
                //.SendAsset(satoshi.PubKey, new NBitcoin.OpenAsset.AssetMoney(assetIdx, u))
                .SetChange(bitcoinFromAddress)
                .SendFees(Money.Coins(0.001m))
                .BuildTransaction(true);

            network.Submit(tx);
            return "ok";
        }
Pages: [1] 2 3 4 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!