Commit Graph

83 Commits

Author SHA1 Message Date
Dmitriy Ryajov 231276d6fe
rename bitwsap to blockexc and move to stores 2021-08-27 16:49:12 -06:00
Dmitriy Ryajov 163fcefb31
rename bitswap and move to stores 2021-08-27 16:16:24 -06:00
Dmitriy Ryajov bd86433679
fix chunker tests 2021-08-27 16:13:53 -06:00
Dmitriy Ryajov 02095967f9
remove obsolete contents 2021-08-27 16:06:55 -06:00
Dmitriy Ryajov 2c919c40e8
run blockset tests along with with the rest 2021-08-27 16:06:31 -06:00
Dmitriy Ryajov 9ffd64ebed
adding basic test for treehash algo 2021-08-27 16:01:43 -06:00
Dmitriy Ryajov ad63969f20
wip 2021-08-27 15:38:02 -06:00
Dmitriy Ryajov 47ca93f18c
wip 2021-08-27 15:37:24 -06:00
Dmitriy Ryajov baa5fd78a0
rename dataset to blockset 2021-08-27 13:48:23 -06:00
Dmitriy Ryajov cfa6161952
reorg files and fix tests 2021-08-27 11:45:15 -06:00
Dmitriy Ryajov 00b5aa9c55
move blockstream into own dir 2021-08-27 11:44:43 -06:00
Dmitriy Ryajov 75371e9432
adding dataset abstraction 2021-08-27 11:11:24 -06:00
Dmitriy Ryajov 4a7bf4e3b7
raises defect 2021-08-27 11:11:09 -06:00
Dmitriy Ryajov 271f7d7523
add block stream abstraction 2021-08-27 11:03:21 -06:00
Dmitriy Ryajov 10844c0bd5
use CidV1 and raw multicodec as default 2021-08-27 11:02:35 -06:00
Dmitriy Ryajov e2a6003ddd
use PeerInfo in event handlers 2021-08-27 11:01:44 -06:00
Mark Spanbroek b049e54d9e Update CI script
Copied from lib-p2p master; fixes error with windows dependencies.
2021-06-07 13:21:34 +02:00
Mark Spanbroek 6bd4260911 Replace pricing exchange by account exchange
Rationale: price is no longer set per peer, but per chunk.
Only the Ethereum accounts of the peers needs to be exchanged.
2021-06-07 09:50:17 +02:00
Mark Spanbroek d4dd15734e Remove double bookkeeping in peerHave and peerPrices 2021-06-07 09:50:17 +02:00
Mark Spanbroek e3b68f96d8 Remove debt ratio
Rationale: selecting peers based on debt ratio in bytes
is no longer needed when the bandwidth for each chunk is
compensated.
2021-06-07 09:50:17 +02:00
Mark Spanbroek fa05bffeac Pay per-block price instead of per-peer price 2021-06-07 09:50:17 +02:00
Mark Spanbroek f69827d582 Send block prices 2021-06-07 09:50:17 +02:00
Mark Spanbroek 98d8571ceb Simplify 2021-06-07 09:50:17 +02:00
Mark Spanbroek 0a28338136 Simplify test 2021-06-07 09:50:17 +02:00
Mark Spanbroek c57ecde046 Update to version 0.9.1 of questionable 2021-06-07 09:50:17 +02:00
Mark Spanbroek 0e34b69d7d Add block prices to peer context 2021-06-07 09:50:17 +02:00
Mark Spanbroek 0ac876dbc3 Add pricing to block presence messages 2021-06-07 09:50:17 +02:00
Mark Spanbroek 11da2339de Hard-code asset address
We're only going to support a single asset for now.
2021-06-07 09:50:17 +02:00
Mark Spanbroek 811b29fb5e Receive payments for blocks that were sent 2021-06-07 09:50:17 +02:00
Mark Spanbroek 5160b267b6 Use reference semantics for wallets 2021-06-07 09:50:17 +02:00
Mark Spanbroek 2d4a735e5f Update to latest versions of nitro and questionable 2021-06-07 09:50:17 +02:00
Mark Spanbroek 753bde7775 Fix build failure on 32 bit platforms 2021-06-07 09:50:17 +02:00
Mark Spanbroek ee978f354e Engine sends payments for received blocks 2021-06-07 09:50:17 +02:00
Mark Spanbroek 9512bbc50b Add proc to engine that pays peers for bytes 2021-06-07 09:50:17 +02:00
Mark Spanbroek ad48f55aaa Update to latest versions of nitro and questionable 2021-06-07 09:50:17 +02:00
Mark Spanbroek d9e5bc934f Move peer context into its own module 2021-06-07 09:50:17 +02:00
Mark Spanbroek 4ce3f6d3da Add nitro wallet to BitswapEngine 2021-06-07 09:50:17 +02:00
Mark Spanbroek 22f4c277dd Revert "Add nitro wallet to BitswapNetwork"
This reverts commit e55ac4e9de.
2021-06-07 09:50:17 +02:00
Mark Spanbroek 6fbe37eb55 Remove dead code 2021-06-07 09:50:17 +02:00
Mark Spanbroek 3c4d4dc29f Exchange pricing when connecting to new peer 2021-06-07 09:50:17 +02:00
Mark Spanbroek 0897e615e6 Broadcast payment 2021-06-07 09:50:17 +02:00
Mark Spanbroek 6e7220efbb Broadcast pricing 2021-06-07 09:50:17 +02:00
Mark Spanbroek e02c40db80 Add handler for payment messages 2021-06-07 09:50:17 +02:00
Mark Spanbroek 5f9215a371 Add handler for pricing messages 2021-06-07 09:50:17 +02:00
Mark Spanbroek 364d3a9277 Fix typo 2021-06-07 09:50:17 +02:00
Mark Spanbroek 02ef50ab46 Move pricing and payments into bitswap protobuf message
Only a single message type is forwarded to the rpc handler,
so we add pricing and payment info to that message type.
2021-06-07 09:50:17 +02:00
Mark Spanbroek 9635f26b90 Fix tests on 32 bit platforms 2021-06-07 09:50:17 +02:00
Mark Spanbroek c819ba1be1 protobuf message for state channel updates 2021-06-07 09:50:17 +02:00
Mark Spanbroek f60df42c88 Ensure that encoding of pricing doesn't raise 2021-06-07 09:50:17 +02:00
Mark Spanbroek cd00db81ed Add package upraises 2021-06-07 09:50:17 +02:00