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

Get fork information from getblockchaininfo instead of manually configuring #18

Open
hsjoberg opened this issue May 2, 2021 · 0 comments

Comments

@hsjoberg
Copy link
Owner

hsjoberg commented May 2, 2021

The config should set the fork key from getblockchaininfo and then the rest can automatically set up:

{
	"result": {
		"chain": "main",
		"blocks": 681524,
		"headers": 681524,
		"bestblockhash": "00000000000000000003f11f7ea1501c799a09530dd3c751665a5ac7818b8657",
		"difficulty": 20608845737768.16,
		"mediantime": 1619951663,
		"verificationprogress": 0.9999929291006103,
		"initialblockdownload": false,
		"chainwork": "00000000000000000000000000000000000000001cce4dd390f48bb3db350888",
		"size_on_disk": 388722795567,
		"pruned": false,
		"softforks": {
			"bip34": {
				"type": "buried",
				"active": true,
				"height": 227931
			},
			"bip66": {
				"type": "buried",
				"active": true,
				"height": 363725
			},
			"bip65": {
				"type": "buried",
				"active": true,
				"height": 388381
			},
			"csv": {
				"type": "buried",
				"active": true,
				"height": 419328
			},
			"segwit": {
				"type": "buried",
				"active": true,
				"height": 481824
			},
			"taproot": {
				"type": "bip9",
				"bip9": {
					"status": "started",
					"bit": 2,
					"start_time": 1619222400,
					"timeout": 1628640000,
					"since": 681408,
					"statistics": {
						"period": 2016,
						"threshold": 1815,
						"elapsed": 117,
						"count": 2,
						"possible": true
					},
					"min_activation_height": 709632
				},
				"active": false
			}
		},
		"warnings": ""
	},
	"error": null,
	"id": null
}
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

No branches or pull requests

1 participant