Skip to content

Instantly share code, notes, and snippets.

View hashbender's full-sized avatar
👷‍♂️
Buidling

Nick Hansen hashbender

👷‍♂️
Buidling
View GitHub Profile
00a544801ea243e95f5474ec6de79d033d779e06ac06fc24b8610c3f892ab502f74bdb5cc127c0aca0b301788a9a1a4c21f06a25063fe648e907328f5c73112f441caf985649cafbca93b177e53e15d071efdc36035679a02b1295a346985c1f237bc9ef0ac05ede612610decf54d763d146a824bce1d57ec26b28fa46a6075e0c30be7bbfc1ed7361566830341a77767a1f8c17c2b7813dca78e09f5b833c1fecb9fd57b3560295020902ddd82e1859e28f8557d32d2831c1d69002ef34ca570466129a87bd74946b715d69c521424d76321419b59bca8be13aca1f37b5ccd58aaa2744b2bc0d2e07bb1aa95b583d42bd138b52f087add9da7394d00a0b860bea120d5aec89d14468bc85d457812e1fa32e34dada0d18ff81fa6547644941d2f6e8f17d6f7e16e7d9192b6141ab1b1f8388da53b8c0f1c0eb21ec2b9c61b6c850a652ac70b6848deb0a4f5baedb71a301cf1ea035ebb635d64785743b69c52f87f7fe8aa903e53ece33f02d65a5d14125f4e686a187c65126bb0f24cee0d907844fc60256f729d993aea4aa7fc0aa1439d71615c5e339f027743c09d35cad171671832017ae94c651d8822f3d9821a1e7d6ca81048ddf556e2ce2cd8f43d1dd49e7cee4803cfa8b4b431fdfeae12584db23b2d67c9db71dc4bd5e3b598ab2b5f861a63889460928d157f95b91c7c6e6f0611671733789970278a2b36b85ca51
@hashbender
hashbender / BadBlocks.txt
Created February 14, 2018 05:26
Bad Block Numbers
141,662
{
"data": "0100000001077cb45fc6f552c703f12717c12963c4b0e11f02818205c779feff476b9b658b010000006b483045022100c7beac4a68b9cbfb79536372492a939f9530d3ef77da97400efe954ae67e30240220292f4fe6dee7b1f3d3d6949dda32c412fbd1939a48cfcd5b23b979cec1ae49ae01210275c88cc7c78cf33899e2eb9b7f3b722d4a6fc00edfc1bbaa2b16c4c54f8f11d8feffffff0200c2eb0b000000001976a9144436223de135540f62af4464002f2cffd8db61d288ac1c6d614e030000001976a914e21762df2a9d9f9f04e3efb463186a41d925723a88aceeb10400",
"hash": "a3b7cbdc533de7348c8b2ef1502b3c95b50b8eab2c20d17fe66673ee7dc84b77",
"depends": [
],
"fee": 4520,
"sigops": 2
}
[10:21 PM] penfold: check the byte ordering on ripemd160
[10:22 PM] penfold: you will have to reverse it I think
[10:23 PM] penfold: I'm not able to look in detail right now but
[10:23 PM] penfold: I swap the byte order of the sha256d output before feeding into sha512
[10:24 PM] penfold: and then swap the two half outputs of sha512 before feeding into ripemd160
[10:24 PM] penfold: then swap the outputs of ripemd before feeding into 256
[10:24 PM] penfold: not sure if that sounds right lol but you get the idea
runtime/debug.Stack(0x1047967, 0x0, 0xc4203b7f38)
/usr/local/go/src/runtime/debug/stack.go:24 +0xa7
runtime/debug.PrintStack()
/usr/local/go/src/runtime/debug/stack.go:16 +0x22
github.com/NebulousLabs/Sia/build.Critical(0xc4203b8240, 0x2, 0x2)
/Users/nickh/code/Go/src/github.com/NebulousLabs/Sia/build/critical.go:16 +0x93
github.com/NebulousLabs/Sia/persist.(*Logger).Critical(0xc42020d500, 0xc4203b8240, 0x2, 0x2)
/Users/nickh/code/Go/src/github.com/NebulousLabs/Sia/persist/log.go:37 +0xcc
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).computeConsensusChange(0xc4200d1b80, 0xc42029c2a0, 0x0, 0x0, 0x0, 0xc427fed700, 0x1, 0x1, 0x0, 0x0, ...)
/Users/nickh/code/Go/src/github.com/NebulousLabs/Sia/modules/consensus/subscribe.go:56 +0x15ed
This file has been truncated, but you can view the full file.
{
"blocks": [
{
"minerpayoutids": [
"583558dc22ea584c6f039306b937e58925b9b93e92ba5fef05254251c5a4e9af"
],
"transactions": [
{
"id": "018f40b0f05ce7f23141fb50da0f4a8809c590c205f72a742de4cf17c90c786a",
"height": 134989,
:: Batch file sample for Marlin
:: Written by Xurious for SiaMining.com
:: Sia Address: 00091d9619f1e697ddf80e751b68baffc444e7b59eeb54e131f136711d84aebf3bc6e0b820af
:: Updated 2016-08-12
::
:: Your Payout Address.
SET address=00091d9619f1e697ddf80e751b68baffc444e7b59eeb54e131f136711d84aebf3bc6e0b820af
:: Worker Name.
SET worker=example_worker
:: Intensity. Lower values may be better for normal desktop usage.
@hashbender
hashbender / synctime.csv
Created November 3, 2017 02:07
Explorer Sync Time By Block
We can't make this file beautiful and searchable because it's too large.
0, 629.102µs
1, 447.075µs
2, 314.697µs
3, 419.795µs
4, 299.183µs
5, 283.507µs
6, 367.308µs
7, 300.801µs
8, 454.676µs
9, 808.391µs
@hashbender
hashbender / block_websocket.json
Created October 30, 2017 03:02
Block Websocket Response
{
"applied_blocks": [
{
"block": {
"minerpayoutids": [
"90c465c81e007de0116f091564492d7e8525af813c191f3c7f96e1953bd0bc7f"
],
"transactions": [
{
"id": "78b75e3a443e9901050b1c63257e708cc23d9af41422cdd9e066c4bba159f4b2",
@hashbender
hashbender / tx_output.json
Created October 30, 2017 01:38
Transaction Websocket Output
{
"applied_txs": [{
"id": "78c9502381782f18d56d2f5a7b4ad2dcd568442231bd00da1af3109c0629ca3f",
"height": 0,
"parent": "25f6e3b9295a61f69fcb956aca9f0076234ecf2e02d399db5448b6e22f26e81c",
"rawtransaction": {
"siacoininputs": [{
"parentid": "5f718207a83f834d632d2cf99aee629fb829d10057384b7ea85a25af0805176a",
"unlockconditions": {
"timelock": 0,