chips-blockchain / chips

CHIPS blockchain is the native cryptocurrency used by the Pangea Poker game.
https://chips.cash
MIT License
1 stars 13 forks source link

[Bounty Job] - Upgrade Chips-Core to latest Bitcoin-Core upstream code #10

Open satindergrewal opened 3 years ago

satindergrewal commented 3 years ago

Chips-Core code is forked from some Bitcoin-Core 0.16 (if I remember correctly). And as of this old version, Chips only does support Tor Onion v2 addresses to setup Chips node over tor.

Tor service version 2 addresses are being deprecated already. Here's relevant link: https://blog.torproject.org/v2-deprecation-timeline

It is important to have a decentralised and private network of Chips network nodes for Pangea Poker, and we need to have support for latest Tor Onion v3 addresses in Chips-Core software. Bitcoin recently removed Onion v2 support from their latest code base, since it's been suggest to move the Tor services support to Onion v3 long ago by Tor project.

Since we have the need, the opportunity, and the right time to upgrade Chips to latest upstream Bitcoin-Core code, we should take this opportunity and do efforts to do so.

So, I offer a bounty to anyone or any team who upgrades Chips-Core to latest upstream code base of Bitcoin-Core.

Bounty:

TOTAL BOUNTY ON OFFER: 4000 KMD

But, you have to make sure that there'll be backwards compatibility APIs which kept in latest upgrades as well. Have a word with the core developers to know which ones are most important to keep for backward compatibility. One example I know is to keep getinfo API in latest upgrade.

barrystyle commented 3 years ago

Hi @satindergrewal, I've finished a complete rebase over Bitcoin 0.21, including the cryptoconditions library; just debugging a small issue related to segwit and should be ready to check out. james

barrystyle commented 3 years ago

Completed @ https://github.com/barrystyle/chips Could be done as a PR but i'd probably recommend against that..

satindergrewal commented 3 years ago

Completed @ https://github.com/barrystyle/chips Could be done as a PR but i'd probably recommend against that..

Thanks @barrystyle!

I'll ask some developer from Chips to go through you upgrade changes. Will be getting back to you on it soon. If you want to have a conversation on it with Chips developers you can also join Chips discord by visiting: https://chips.cash/

satindergrewal commented 3 years ago

Thanks for the so far work @barrystyle. Acknowledging here that full bounty is paid to @barrystyle for this job.

Bounty amounts paid details:

There are still other things which needs to be done on this upgrade:

addnode=159.69.23.29
addnode=95.179.192.102
addnode=149.56.29.163
addnode=145.239.149.173
addnode=178.63.53.110
addnode=151.80.108.76
addnode=185.137.233.199
daemon=1
txindex=1
rpcuser=user$(openssl rand -base64 12)
rpcpassword=password$(openssl rand -base64 12)
rpcbind=127.0.0.1
rpcallowip=127.0.0.1"
prune=0
tqjumabpm4fpuyrqbzeeolfagrjot52tiur3ahzstjghc6w7t4irbjyd.onion:57777
adxdtmyip56bccbhoa7apxz3acn3wpp4wpydrqvtaiparrokhs5chvid.onion:57777
w2lfxvotlgivqdaek3s25chlucbkldjj3fppu7npetmizfrmcbfhduyd.onion:57777
m3v2z2fhdsmzl247sh676hhyw42gwjnjlekpwgaawtspw4ywtxubanyd.onion:57777
cqd2pyeu2biqta3d76noxefdzmns6ts44kwkfj2hulbrpstfujbxz7id.onion:57777
nkmebbex5o3zkra6jnu4mdzl5q7jjaudfq7adxqhrr6o436ukk3bfbid.onion:57777
62av6yfpc7ilhvaoti3me24kq4spcoijzzkvihxbcounnaxiyxsvltyd.onion:57777
rf4tcov2mwpk6rwy3az3qyklhaoisykdcva3yrqpey6m45otd63a.b32.i2p:57777
cvqdesyhqx7l5gdo25huiyxlanhzg34rknuufbgyopk6u44a4qla.b32.i2p:57777
le67xufykulusucp2gmkz27unbnarppxoxlyepjk4njcpxnj762q.b32.i2p:57777
z57wabhjwocpudpztccl3ctrgoouy6e7afswbkezq2o6qncwjtka.b32.i2p:57777
u4ebunrra6ek26tqnd4t7wx453cidcjmflh4qwa45ysb37dy7z5q.b32.i2p:57777
who-biz commented 3 years ago

I am looking into adding the seeds for clearnet, tor, and i2p. Two questions:

  1. What is the desired default network for chipsd among clearnet/tor/i2p? This decision will change the manner in which seeds are added.
  2. Is it preferable to have a config file which includes these seeds? Or to hardcode them as default arguments (to -addnode) on init?
barrystyle commented 3 years ago

@who-biz Theyve already been hardcoded into the base (https://github.com/satindergrewal/bitcoin/blob/barry/src/chainparamsseeds.h).

who-biz commented 3 years ago

@barrystyle you've included seeds for all of: clearnet, tor, and i2p?

who-biz commented 2 years ago

This should probably be closed, issue no longer relevant with current direction.