Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional chain Bitswap #4717

Merged
merged 2 commits into from
Nov 6, 2020
Merged

Optional chain Bitswap #4717

merged 2 commits into from
Nov 6, 2020

Conversation

magik6k
Copy link
Contributor

@magik6k magik6k commented Nov 3, 2020

A bit messy because there's a circular dep between chainblockstore/bitswap and another one between bitswap/network/chainstore, but running this on my node I'm not seeing any warnings coming from this, which is expected.

chain/store/store.go Outdated Show resolved Hide resolved
@magik6k
Copy link
Contributor Author

magik6k commented Nov 3, 2020

Just verified to work on a node synced from a snapshot which reproduced the sync issue. It generated those logs:

2020-11-03T23:38:03.002+0100	ERROR	blockstore	blockstore/fallbackstore.go:33	fallbackstore: Block not found locally, fetching from the network	{"cid": "bafy2bzacebctjyglcymp3afqwfxqugxkebwcar2h5kppvvyquixgk6mu52uvy"}
2020-11-03T23:38:03.002+0100	INFO	bs:sess	session/session.go:459	No peers - broadcasting	{"session": 4, "want-count": 1}
2020-11-03T23:38:03.009+0100	INFO	sub	sub/incoming.go:98	new block over pubsub	{"cid": "bafy2bzacebazcxhqrmymhxhxksazwxuak6xtnc4jhjpqkqr4q33oyxnb42c6i", "source": "12D3KooWPGWzrJCHsFGNmMyNE659FWkofCo6t94k87dGXXynmWgX", "msgfetch": 0.002336539}
2020-11-03T23:38:03.032+0100	ERROR	blockstore	blockstore/fallbackstore.go:33	fallbackstore: Block not found locally, fetching from the network	{"cid": "bafy2bzacebvdyql6nyrgakhmquiovflqvvtcu2jzihq3o4x2kbkwcoa4ehxfg"}
2020-11-03T23:38:03.033+0100	INFO	bs:sess	session/session.go:459	No peers - broadcasting	{"session": 5, "want-count": 1}
2020-11-03T23:38:03.091+0100	ERROR	blockstore	blockstore/fallbackstore.go:33	fallbackstore: Block not found locally, fetching from the network	{"cid": "bafy2bzacebd7svs7jx5vuvukz56dulpi5smk46jeqdjtomzkidta2tbv77we4"}
2020-11-03T23:38:03.091+0100	INFO	bs:sess	session/session.go:459	No peers - broadcasting	{"session": 6, "want-count": 1}
2020-11-03T23:38:03.151+0100	ERROR	blockstore	blockstore/fallbackstore.go:33	fallbackstore: Block not found locally, fetching from the network	{"cid": "bafy2bzacec264zetfptfx6rtlwiuuwzc7qf4n2lxginnpvaje37fwhpqx74hw"}
2020-11-03T23:38:03.151+0100	INFO	bs:sess	session/session.go:459	No peers - broadcasting	{"session": 7, "want-count": 1}
2020-11-03T23:38:03.212+0100	ERROR	blockstore	blockstore/fallbackstore.go:33	fallbackstore: Block not found locally, fetching from the network	{"cid": "bafy2bzaceb4xnbx4sg7xh35u46gz4u6me2niqoxgvof5jzs6dp2ynj3fhqfpe"}
2020-11-03T23:38:03.212+0100	INFO	bs:sess	session/session.go:459	No peers - broadcasting	{"session": 8, "want-count": 1}
2020-11-03T23:38:03.244+0100	ERROR	blockstore	blockstore/fallbackstore.go:33	fallbackstore: Block not found locally, fetching from the network	{"cid": "bafy2bzaced7h7oanldkbhy3ju6wxvesni2kyulcg3t6a6ddep4xtfjxk5arto"}
2020-11-03T23:38:03.244+0100	INFO	bs:sess	session/session.go:459	No peers - broadcasting	{"session": 9, "want-count": 1}
2020-11-03T23:38:03.275+0100	ERROR	blockstore	blockstore/fallbackstore.go:33	fallbackstore: Block not found locally, fetching from the network	{"cid": "bafy2bzacedj3o6b6ytcdnult2nokvy7fymm2muvw2dhsxp2ans33rnr4udooa"}

and then just worked

@magik6k magik6k merged commit 426c2e8 into master Nov 6, 2020
@magik6k magik6k deleted the feat/optional-chain-bitswap branch November 6, 2020 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants