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

Parse segwit address history (server/client). #515

Open
thecodefactory opened this issue Dec 5, 2017 · 3 comments
Open

Parse segwit address history (server/client). #515

thecodefactory opened this issue Dec 5, 2017 · 3 comments
Assignees
Milestone

Comments

@thecodefactory
Copy link
Member

Related to the end of the discussion in #479.

Requires a mainnet sync without checkpoints in order to verify.

@evoskuil
Copy link
Member

evoskuil commented Dec 14, 2017

This address can be scanned into JSON via BCI using this URL. Parsing that for segwit addresses yields the following set of 50 addresses:

37t42r1VE34X3gUwP9K2nLUNUmmBqTH9xM
3H4X31j1pHswncoeasRjJt7TKBJLZz6ABE
33VDqgAPes1fm5ZY8DnWERDkhJ3gYmdGx7
3FccCiCtevkb18vv7awdym9NzgSvftVZ2E
3BX3tkqowkvWB9p9fVm4xidQ8TgWLnXuU4
3HsqQgMyDPjYH79EdzEpAtxkPCyovF5Zg7
3H4X31j1pHswncoeasRjJt7TKBJLZz6ABE
3AfPgKEtVE2MUcMUCSQcM53ytrcgX9HbRs
3G2pzKpU66k9vk58prsHKHhUZiRFxRwhqj
35Lsq7Tq73Zx5eQ9mXd6iJficNGvFH9oLr
3HdVisQz8TptSKXeQxnEp3q8XrYvFXDdVZ
3BMEXegs3KmXQhvWiQbWhBiRabUErdQsZy
32GyU5omRNqizx9ZJpL8qV22CeTMTdtYfA
342sYj8Ldb6VxwvU3jGUc5jp9vd3m9no3o
3BP83L3Y67siD7ivf6ni4X2prxDm3WLK2k
3HivhZ4bYajoyNgvNbwcDdkCXZ3tXXJ8mp
3HuSSV4Hpv1VnoEMEVyeyP2L3no4vteF8n
3KWZTnhCckc3bx2nRCGBXxA4UomFzQLYxf
34mxn3gS7t5t4HVzGCch57FU4A7hyU355h
3BMEXtNDGD8Tec9r3wjmRbrs2N7jXAoGRv
32pX5Szs1AyeH9riEem56yZ1K4SkwAy5nu
38fs1kbCEkWFgNMbWg8rnPZKFwe4v1HvZq
3BJKv6ynjv99KrhMMcCr7m256X9R3zr5Sd
38AQJZZeRHM2q4vK99VFeVdUWFtjQ7uKgU
33RrVY9wNYtFArvsKX21vmFRhjLBESTkA3
365L8TFUmqTWxAUqqinjG52Jp16wvAUWkF
3CpKMr9UqfJWfN71ySPzcHBjqR1b1Tjw6X
36xdZnExCb8nK9PNpnKtxKcXHsBivCpspL
3CmYE7gaPDi6kHwtQMcLBiNs5bjsEiSkJa
3GkGwmyS24wgLgCCjzpzyvdyLuGRayNneJ
3QjhAmXTHCoULLb812nLaSGe7JhcWetozR
3JEbGvgxbv2MtbqKCqZBiuPGm9ixC4buUS
3JQfn4abhEMdF2CKXFisT9pNxj7xYZ2Zjq
3K3NusBnnQHRomJzLvZrCvpDzgG58tntt1
36ouUA8bDYKjtkHEjKn5PUk1spgBqg4K2W
38vvbgyeSbJCQ28y4tbgwa6Eh6xVdxrcHH
33fsANR3HXi6uk5rsLZs6BkhSe9dmozQuX
32ofa162pkGCjyJ9WSaDqNWCRYHsdPHW2o
3CZskpbhZnhYRWSpQ32jMUxDdmbevdvdzk
33VXScunDZs9U14E1RnkgrYsxBkzECCRQq
3PLrYcifd4bvGk1Day3DjaWpsAtBYujBUK
33R4VKfKZk3zEbNjoEY15JiCaVcS1NAwCQ
3Mw1gyBSrNzwB1ph6vYP9tyNhfm5mc8p8z
3B3XHK656Ufkj66U7b2nji3viHdvQQk5dm
3AuXYUKabvKkD3zh1cGkxYwzBkRibDe5UP
3PcjQCf1gVpWtmnBEa2zCMMQJzNcZ1hGdf
3ArLWVW8aixnA19zsNWRyUPLYt5gqkVreF
3KShehQ9ZZ11NdB259NAs9RDESgqLFvtgZ
33PgNKDpE5wKnwmPUuycwM33cab52r9EHp
3PA8FNgr8TSE2Me9z6LUhwXG4M6AaWorAQ

Given that the balance is zero, we know that everything is spend. BX sees the same zero balance, but lower. BX would not see the receipt or the spend of the segwit payments, so this is expected behavior assuming the amounts add up, which I assume is the case (though feel free to write a script to parse the BCI JSON and compare it to bx fetch-history if there is still doubt).

@evoskuil
Copy link
Member

I'll keep this open as we do not yet parse segwit address history, which should be implemented.

@evoskuil evoskuil changed the title Confirm spend accounting is correct via fetch-balance Parse segwit address history. Dec 14, 2017
@evoskuil evoskuil changed the title Parse segwit address history. Parse segwit address history (server/client). Dec 14, 2017
@evoskuil evoskuil added this to the 4.0 milestone Feb 28, 2018
@evoskuil
Copy link
Member

evoskuil commented Mar 6, 2021

@thecodefactory, I believe this is moot given the v4 indexing method - is that what this was about?

@pmienk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants