forked from TrueCloudLab/neoneo-go
block: update binary test data
This commit is contained in:
parent
58af143f25
commit
054b77dbde
4 changed files with 114 additions and 148 deletions
File diff suppressed because one or more lines are too long
|
@ -7,6 +7,7 @@ import (
|
|||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
"github.com/nspcc-dev/neo-go/pkg/config/netmode"
|
||||
"github.com/nspcc-dev/neo-go/pkg/internal/testserdes"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
@ -18,7 +19,7 @@ func getDecodedBlock(t *testing.T, i int) *Block {
|
|||
b, err := hex.DecodeString(data["raw"].(string))
|
||||
require.NoError(t, err)
|
||||
|
||||
block := &Block{}
|
||||
block := New(netmode.TestNet)
|
||||
require.NoError(t, testserdes.DecodeBinary(b, block))
|
||||
|
||||
return block
|
||||
|
|
|
@ -1,33 +1,49 @@
|
|||
{
|
||||
"raw": "00000000bf4421c88776c53b43ce1dc45463bfd2028e322fdfb60064be150ed3e36125d418f98ec3ed2c2d1c9427385e7b85d0d1a366e29c4e399693a59718380f8bbad6d6d90358010000004490d0bb7170726c59e75d652b5d3827bf04c165bbe9ef95cca4bf5501fd4501404edf5005771de04619235d5a4c7a9a11bb78e008541f1da7725f654c33380a3c87e2959a025da706d7255cb3a3fa07ebe9c6559d0d9e6213c68049168eb1056f4038a338f879930c8adc168983f60aae6f8542365d844f004976346b70fb0dd31aa1dbd4abd81e4a4aeef9941ecd4e2dd2c1a5b05e1cc74454d0403edaee6d7a4d4099d33c0b889bf6f3e6d87ab1b11140282e9a3265b0b9b918d6020b2c62d5a040c7e0c2c7c1dae3af9b19b178c71552ebd0b596e401c175067c70ea75717c8c00404e0ebd369e81093866fe29406dbf6b402c003774541799d08bf9bb0fc6070ec0f6bad908ab95f05fa64e682b485800b3c12102a8596e6c715ec76f4564d5eff34070e0521979fcd2cbbfa1456d97cc18d9b4a6ad87a97a2a0bcdedbf71b6c9676c645886056821b6f3fec8694894c66f41b762bc4e29e46ad15aee47f05d27d822f1552102486fd15702c4490a26703112a5cc1d0923fd697a33406bd5a1c00e0013b09a7021024c7b7fb6c310fccf1ba33b082519d82964ea93868d676662d4a59ad548df0e7d2102aaec38470f6aad0042c6e877cfd8087d2676b0f516fddd362801b9bd3936399e2103b209fd4f53a7170ea4444e0cb0a6bb6a53c2bd016926989cf85f9b0fba17a70c2103b8d9d5771d8f513aa0869b9cc8d50986403b78c6da36890638c3d46a5adce04a2102ca0e27697b9c248f6f16e085fd0061e26f44da85b58ee835c110caa5ec3ba5542102df48f60e8f3e01c48ff40b9b7f1310d7a8b2a193188befe1c2e3df740e89509357ae0100004490d0bb00000000",
|
||||
"hash": "d782db8a38b0eea0d7394e0f007c61c71798867578c77c387c08113903946cc9",
|
||||
"size": 686,
|
||||
"raw": "000000002c343609ae0055bcdb57cc6e89b8e466cb264522feb1e0f916eb4a6a0d50f6a9129f211ef3bddbb1ed3ac496d6ee2de537764c4fb26c4b470e2f3a52fe6474dd75de3eb973010000c8000000e0a3c55cad72028fb5901748b19a27be21f6540401fd4a010c40d9bd422d752b9703080dd03c0b7182578d393e28f64ada3b76211f7b939c74a835bf354608af0ce8569ed9a65a7c578f1bbb742563c3086539e8b5ad5a0900590c405125cd7e76c2ce97546b9e5ea74ab313fb5875dc6d0567102ca2efee14e1de8d2b1deb332101b7c703d9c051ea6d43230db5fc787941bb40ad2c327a491936c10c402ad062631f244303d5818be9bce3d8aa5384ffaf8c531181166f45a230f96f93f42ea1c24286fe90e683249b39233223d84fe0996dcb458ef1288607ead535a50c40da40c40953d461d34014c5e66859874f6eec0740373054ea57dd66f615e2fa03fa395222b502f54210c0914975839c472702454e8d18040b702e6443f7e84f020c40393978243b8e81c6e08f0b021b9795c1c8f8d4d6155f0f16e28f30715bc38798a98b82d98e02a47f84d8b441ba157e8b280d27024fa1159e861c45fab9a647befdfd00150c2103009b7540e10f2562e5fd8fac9eaec25166a58b26e412348ff5a86927bfac22a20c21030205e9cefaea5a1dfc580af20c8d5aa2468bb0148f1a5e4605fc622c80e604ba0c210214baf0ceea3a66f17e7e1e839ea25fd8bed6cd82e6bb6e68250189065f44ff010c21023e9b32ea89b94d066e649b124fd50e396ee91369e8e2a6ae1b11c170d022256d0c2103408dcd416396f64783ac587ea1e1593c57d9fea880c8a6a1920e92a2594778060c2102a7834be9b32e2981d157cb5bbd3acb42cfd11ea5c3b10224d7a44e98c5910f1b0c2102ba2c70f5996f357a43198705859fae2cfea13e1172962800772b3d588a9d4abd170b41138defaf02045be5c3458d87a02c00f5f0617fc6ab5b000000000016f51200000000004615200001574d3c03df4a9b2772af08e4b296721009b7a6fd0100530c2102a7834be9b32e2981d157cb5bbd3acb42cfd11ea5c3b10224d7a44e98c5910f1b11c00c11726567697374657243616e6469646174650c1425059ecb4878d3a875f91c51ceded330d4575fde41627d5b5201420c40e3dfd02f6ec79dd6dbbe434540349187d975d5931bcf961c9d6b463d97165437049beec702ee14e69eb953c785134e689a3108464a130147174a80421756f391290c2102a7834be9b32e2981d157cb5bbd3acb42cfd11ea5c3b10224d7a44e98c5910f1b0b4195440d78",
|
||||
"hash": "0xfe767cae1a0a2c0825cc3610dd5fccd6b0dac4a5e2ab56644eea53cafce64848",
|
||||
"size": 942,
|
||||
"version": 0,
|
||||
"previousblockhash": "d42561e3d30e15be6400b6df2f328e02d2bf6354c41dce433bc57687c82144bf",
|
||||
"merkleroot": "d6ba8b0f381897a59396394e9ce266a3d1d0857b5e3827941c2d2cedc38ef918",
|
||||
"time": 1476647382,
|
||||
"index": 1,
|
||||
"nonce": "6c727071bbd09044",
|
||||
"nextconsensus": "APyEx5f4Zm4oCHwFWiSTaph1fPBxZacYVR",
|
||||
"script": {
|
||||
"invocation": "404edf5005771de04619235d5a4c7a9a11bb78e008541f1da7725f654c33380a3c87e2959a025da706d7255cb3a3fa07ebe9c6559d0d9e6213c68049168eb1056f4038a338f879930c8adc168983f60aae6f8542365d844f004976346b70fb0dd31aa1dbd4abd81e4a4aeef9941ecd4e2dd2c1a5b05e1cc74454d0403edaee6d7a4d4099d33c0b889bf6f3e6d87ab1b11140282e9a3265b0b9b918d6020b2c62d5a040c7e0c2c7c1dae3af9b19b178c71552ebd0b596e401c175067c70ea75717c8c00404e0ebd369e81093866fe29406dbf6b402c003774541799d08bf9bb0fc6070ec0f6bad908ab95f05fa64e682b485800b3c12102a8596e6c715ec76f4564d5eff34070e0521979fcd2cbbfa1456d97cc18d9b4a6ad87a97a2a0bcdedbf71b6c9676c645886056821b6f3fec8694894c66f41b762bc4e29e46ad15aee47f05d27d822",
|
||||
"verification": "552102486fd15702c4490a26703112a5cc1d0923fd697a33406bd5a1c00e0013b09a7021024c7b7fb6c310fccf1ba33b082519d82964ea93868d676662d4a59ad548df0e7d2102aaec38470f6aad0042c6e877cfd8087d2676b0f516fddd362801b9bd3936399e2103b209fd4f53a7170ea4444e0cb0a6bb6a53c2bd016926989cf85f9b0fba17a70c2103b8d9d5771d8f513aa0869b9cc8d50986403b78c6da36890638c3d46a5adce04a2102ca0e27697b9c248f6f16e085fd0061e26f44da85b58ee835c110caa5ec3ba5542102df48f60e8f3e01c48ff40b9b7f1310d7a8b2a193188befe1c2e3df740e89509357ae"
|
||||
"previousblockhash": "0xa9f6500d6a4aeb16f9e0b1fe224526cb66e4b8896ecc57dbbc5500ae0936342c",
|
||||
"merkleroot": "0xdd7464fe523a2f0e474b6cb24f4c7637e52deed696c43aedb1dbbdf31e219f12",
|
||||
"time": 1596540771957,
|
||||
"index": 200,
|
||||
"nextconsensus": "NgPkjjLTNcQad99iRYeXRUuowE4gxLAnDL",
|
||||
"witnesses": [
|
||||
{
|
||||
"invocation": "DEDZvUItdSuXAwgN0DwLcYJXjTk+KPZK2jt2IR97k5x0qDW/NUYIrwzoVp7Zplp8V48bu3QlY8MIZTnota1aCQBZDEBRJc1+dsLOl1Rrnl6nSrMT+1h13G0FZxAsou/uFOHejSsd6zMhAbfHA9nAUeptQyMNtfx4eUG7QK0sMnpJGTbBDEAq0GJjHyRDA9WBi+m849iqU4T/r4xTEYEWb0WiMPlvk/QuocJChv6Q5oMkmzkjMiPYT+CZbctFjvEohgfq1TWlDEDaQMQJU9Rh00AUxeZoWYdPbuwHQDcwVOpX3Wb2FeL6A/o5UiK1AvVCEMCRSXWDnEcnAkVOjRgEC3AuZEP36E8CDEA5OXgkO46BxuCPCwIbl5XByPjU1hVfDxbijzBxW8OHmKmLgtmOAqR/hNi0QboVfosoDScCT6EVnoYcRfq5pke+",
|
||||
"verification": "FQwhAwCbdUDhDyVi5f2PrJ6uwlFmpYsm5BI0j/WoaSe/rCKiDCEDAgXpzvrqWh38WAryDI1aokaLsBSPGl5GBfxiLIDmBLoMIQIUuvDO6jpm8X5+HoOeol/YvtbNgua7bmglAYkGX0T/AQwhAj6bMuqJuU0GbmSbEk/VDjlu6RNp6OKmrhsRwXDQIiVtDCEDQI3NQWOW9keDrFh+oeFZPFfZ/qiAyKahkg6SollHeAYMIQKng0vpsy4pgdFXy1u9OstCz9EepcOxAiTXpE6YxZEPGwwhAroscPWZbzV6QxmHBYWfriz+oT4RcpYoAHcrPViKnUq9FwtBE43vrw=="
|
||||
}
|
||||
],
|
||||
"consensusdata": {
|
||||
"primary": 4,
|
||||
"nonce": "2ca0878d45c3e55b"
|
||||
},
|
||||
"tx": [
|
||||
{
|
||||
"txid": "d6ba8b0f381897a59396394e9ce266a3d1d0857b5e3827941c2d2cedc38ef918",
|
||||
"size": 10,
|
||||
"type": "MinerTransaction",
|
||||
"hash": "0xca3e47909a27096ee880fac3b1f261dc912b0ba04c83f9142692cfefccedd41a",
|
||||
"size": 242,
|
||||
"version": 0,
|
||||
"nonce": 2137125109,
|
||||
"sender": "NTsaVneGBcARqEddHLAYaS6bncsZNS6X3S",
|
||||
"sysfee": "6007750",
|
||||
"netfee": "1242390",
|
||||
"validuntilblock": 2102598,
|
||||
"signers": [
|
||||
{
|
||||
"account": "0xfda6b709107296b2e408af72279b4adf033c4d57",
|
||||
"scopes": "CalledByEntry"
|
||||
}
|
||||
],
|
||||
"attributes": [],
|
||||
"vin": [],
|
||||
"vout": [],
|
||||
"sysfee": "0",
|
||||
"netfee": "0",
|
||||
"witnesses": [],
|
||||
"nonce": 3151007812
|
||||
"script": "DCECp4NL6bMuKYHRV8tbvTrLQs/RHqXDsQIk16ROmMWRDxsRwAwRcmVnaXN0ZXJDYW5kaWRhdGUMFCUFnstIeNOodfkcUc7e0zDUV1/eQWJ9W1I=",
|
||||
"witnesses": [
|
||||
{
|
||||
"invocation": "DEDj39Avbsed1tu+Q0VANJGH2XXVkxvPlhyda0Y9lxZUNwSb7scC7hTmnrlTx4UTTmiaMQhGShMBRxdKgEIXVvOR",
|
||||
"verification": "DCECp4NL6bMuKYHRV8tbvTrLQs/RHqXDsQIk16ROmMWRDxsLQZVEDXg="
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"confirmations": 2020977,
|
||||
"nextblockhash": "bf638e92c85016df9bc3b62b33f3879fa22d49d5f55d822b423149a3bca9e574"
|
||||
"confirmations": 67197,
|
||||
"nextblockhash": "0x99b23a3bb26cae7e78b880a8b6bacf85a7ae923c7d6239f9a9f72604909fbba3"
|
||||
}
|
|
@ -1,33 +1,24 @@
|
|||
{
|
||||
"raw": "00000000c96c94033911087c387cc77875869817c7617c000f4e39d7a0eeb0388adb82d74208df9542f56a42fb2764142d13274c951087c609565fd5c4ab9b57a183a1afead9035802000000b66fa838e89c9ab259e75d652b5d3827bf04c165bbe9ef95cca4bf5501fd450140e8a85159d8655c7b5a66429831eb15dabefc0f27a22bef67febb9eccb6859cc4c5c6ae675175a0bbefeeeeff2a8e9f175aaaae0796f3b5f29cb93b5b50fbf270409270a02cbbcb99969d6dc8a85708d5609dc1bba9569c849b53db7896c7f1ffd3adc789c0fe8400fb665478567448b4c4bd9c1657432591e4de83df10348f865a40724a9cf9d43eda558bfa8755e7bd1c0e9282f96164f4ff0b7369fd80e878cf49f2e61ed0fdf8cf218e7fdd471be5f29ef1242c39f3695d5decb169667fe0d3d140860da333249f7c54db09b548ad5d5e45fb8787238d51b35a6d4759f7990f47f00ff102e7b88f45acce423dd9f4b87dbf85e7e2c5c7a6aace11e62267c0bbe16b4028d272a701c22c5f8aa3495fa22d7d5a583518ef552e73813ee369c6d51ad2f246a24eb0092ebe7e1550d7de2ee09abad4dae4f4c0277317f5b1190041b9c2c2f1552102486fd15702c4490a26703112a5cc1d0923fd697a33406bd5a1c00e0013b09a7021024c7b7fb6c310fccf1ba33b082519d82964ea93868d676662d4a59ad548df0e7d2102aaec38470f6aad0042c6e877cfd8087d2676b0f516fddd362801b9bd3936399e2103b209fd4f53a7170ea4444e0cb0a6bb6a53c2bd016926989cf85f9b0fba17a70c2103b8d9d5771d8f513aa0869b9cc8d50986403b78c6da36890638c3d46a5adce04a2102ca0e27697b9c248f6f16e085fd0061e26f44da85b58ee835c110caa5ec3ba5542102df48f60e8f3e01c48ff40b9b7f1310d7a8b2a193188befe1c2e3df740e89509357ae010000b66fa83800000000",
|
||||
"hash": "0xbf638e92c85016df9bc3b62b33f3879fa22d49d5f55d822b423149a3bca9e574",
|
||||
"size": 686,
|
||||
"raw": "00000000f791a09cffc085e7864d56ad8a74ee3e04f43c9affcbf14a87a903a889e8e215b5ef5b1df95f0fa5fe508157abdc64680a850dfb36018406758f02da97fc6ced5fccc5da73010000b88800005d12ac6c589d59f92e82d8bf60659cb716ffc1f101fd4a010c40fecf3fed562e1d39cfbc198b4bd5ccdfcea48b300917f3fb45c6f67004bfce8f816198018ccc93a595d62c1030eb29de56380ca67c087dadf4fd73e7f2ef2b910c409b6f623a720fabf6c21dc6e45f0a408a61b3664a81c08a644440b760884db2578fc00e0a16ac0c5bcb441713c0eb56b8448e6fe11c874cc78340ff62350e56f50c40b069d11b240c193fbbbb8115771827a133ca43e03d85ed0ce51893e1ea8ad9c779e8f683f1f455f57518c97a892fdfad7806364a11a9fb349b668a97862c503e0c4027fbc2eca5271da68905deee04ce3cd67450cf52c80c0ffea6d13c68708f3ba3ff6d4312bfff4d096ed5533342c5cf408c4130d05bfd0487dccb025a4b43c0fd0c408bbd56726fb88e4cf4f8dd33a57f9ab6297c8d84de210a585aaacb74cc00746daf44ea6e713d33c2e87344baec2f3cf70c72513d3bd5c7071c5c7d434c828c11fdfd00150c2103009b7540e10f2562e5fd8fac9eaec25166a58b26e412348ff5a86927bfac22a20c21030205e9cefaea5a1dfc580af20c8d5aa2468bb0148f1a5e4605fc622c80e604ba0c210214baf0ceea3a66f17e7e1e839ea25fd8bed6cd82e6bb6e68250189065f44ff010c2103408dcd416396f64783ac587ea1e1593c57d9fea880c8a6a1920e92a2594778060c2102a7834be9b32e2981d157cb5bbd3acb42cfd11ea5c3b10224d7a44e98c5910f1b0c2102ba2c70f5996f357a43198705859fae2cfea13e1172962800772b3d588a9d4abd0c2102f889ecd43c5126ff1932d75fa87dea34fc95325fb724db93c8f79fe32cc3f180170b41138defaf01001a82894d04b16977",
|
||||
"hash": "0xc39ffd0da100be6e8bd1ae536c8cb0b53f9988b635aca58ede3bdc3b6c832d78",
|
||||
"size": 700,
|
||||
"version": 0,
|
||||
"previousblockhash": "0xd782db8a38b0eea0d7394e0f007c61c71798867578c77c387c08113903946cc9",
|
||||
"merkleroot": "0xafa183a1579babc4d55f5609c68710954c27132d146427fb426af54295df0842",
|
||||
"time": 1476647402,
|
||||
"index": 2,
|
||||
"nonce": "b29a9ce838a86fb6",
|
||||
"nextconsensus": "APyEx5f4Zm4oCHwFWiSTaph1fPBxZacYVR",
|
||||
"script": {
|
||||
"invocation": "40e8a85159d8655c7b5a66429831eb15dabefc0f27a22bef67febb9eccb6859cc4c5c6ae675175a0bbefeeeeff2a8e9f175aaaae0796f3b5f29cb93b5b50fbf270409270a02cbbcb99969d6dc8a85708d5609dc1bba9569c849b53db7896c7f1ffd3adc789c0fe8400fb665478567448b4c4bd9c1657432591e4de83df10348f865a40724a9cf9d43eda558bfa8755e7bd1c0e9282f96164f4ff0b7369fd80e878cf49f2e61ed0fdf8cf218e7fdd471be5f29ef1242c39f3695d5decb169667fe0d3d140860da333249f7c54db09b548ad5d5e45fb8787238d51b35a6d4759f7990f47f00ff102e7b88f45acce423dd9f4b87dbf85e7e2c5c7a6aace11e62267c0bbe16b4028d272a701c22c5f8aa3495fa22d7d5a583518ef552e73813ee369c6d51ad2f246a24eb0092ebe7e1550d7de2ee09abad4dae4f4c0277317f5b1190041b9c2c2",
|
||||
"verification": "552102486fd15702c4490a26703112a5cc1d0923fd697a33406bd5a1c00e0013b09a7021024c7b7fb6c310fccf1ba33b082519d82964ea93868d676662d4a59ad548df0e7d2102aaec38470f6aad0042c6e877cfd8087d2676b0f516fddd362801b9bd3936399e2103b209fd4f53a7170ea4444e0cb0a6bb6a53c2bd016926989cf85f9b0fba17a70c2103b8d9d5771d8f513aa0869b9cc8d50986403b78c6da36890638c3d46a5adce04a2102ca0e27697b9c248f6f16e085fd0061e26f44da85b58ee835c110caa5ec3ba5542102df48f60e8f3e01c48ff40b9b7f1310d7a8b2a193188befe1c2e3df740e89509357ae"
|
||||
},
|
||||
"tx": [
|
||||
"previousblockhash": "0x15e2e889a803a9874af1cbff9a3cf4043eee748aad564d86e785c0ff9ca091f7",
|
||||
"merkleroot": "0xed6cfc97da028f7506840136fb0d850a6864dcab578150fea50f5ff91d5befb5",
|
||||
"time": 1597103262815,
|
||||
"index": 35000,
|
||||
"nextconsensus": "NUQ6Q4BWvHU71HNxPQ4LMSHPMK1jSz1nw4",
|
||||
"witnesses": [
|
||||
{
|
||||
"txid": "0xafa183a1579babc4d55f5609c68710954c27132d146427fb426af54295df0842",
|
||||
"size": 10,
|
||||
"type": "MinerTransaction",
|
||||
"version": 0,
|
||||
"attributes": [],
|
||||
"vin": [],
|
||||
"vout": [],
|
||||
"sysfee": "0",
|
||||
"netfee": "0",
|
||||
"witnesses": [],
|
||||
"nonce": 950562742
|
||||
"invocation": "DED+zz/tVi4dOc+8GYtL1czfzqSLMAkX8/tFxvZwBL/Oj4FhmAGMzJOlldYsEDDrKd5WOAymfAh9rfT9c+fy7yuRDECbb2I6cg+r9sIdxuRfCkCKYbNmSoHAimREQLdgiE2yV4/ADgoWrAxby0QXE8DrVrhEjm/hHIdMx4NA/2I1Dlb1DECwadEbJAwZP7u7gRV3GCehM8pD4D2F7QzlGJPh6orZx3no9oPx9FX1dRjJeokv3614BjZKEan7NJtmipeGLFA+DEAn+8LspScdpokF3u4EzjzWdFDPUsgMD/6m0TxocI87o/9tQxK//00JbtVTM0LFz0CMQTDQW/0Eh9zLAlpLQ8D9DECLvVZyb7iOTPT43TOlf5q2KXyNhN4hClhaqst0zAB0ba9E6m5xPTPC6HNEuuwvPPcMclE9O9XHBxxcfUNMgowR",
|
||||
"verification": "FQwhAwCbdUDhDyVi5f2PrJ6uwlFmpYsm5BI0j/WoaSe/rCKiDCEDAgXpzvrqWh38WAryDI1aokaLsBSPGl5GBfxiLIDmBLoMIQIUuvDO6jpm8X5+HoOeol/YvtbNgua7bmglAYkGX0T/AQwhA0CNzUFjlvZHg6xYfqHhWTxX2f6ogMimoZIOkqJZR3gGDCECp4NL6bMuKYHRV8tbvTrLQs/RHqXDsQIk16ROmMWRDxsMIQK6LHD1mW81ekMZhwWFn64s/qE+EXKWKAB3Kz1Yip1KvQwhAviJ7NQ8USb/GTLXX6h96jT8lTJftyTbk8j3n+Msw/GAFwtBE43vrw=="
|
||||
}
|
||||
],
|
||||
"confirmations": 2021026,
|
||||
"nextblockhash": "0x1fca8800f1ffbc9fb08bcfee1269461161d58dcee0252cf4db13220ba8189c5d"
|
||||
"consensusdata": {
|
||||
"primary": 0,
|
||||
"nonce": "7769b1044d89821a"
|
||||
},
|
||||
"tx": [],
|
||||
"confirmations": 32432,
|
||||
"nextblockhash": "0x03bac24218cbee1326d1d3bfd7e18c96dd1cfa7f45d66ddf67f2523fc273b2aa"
|
||||
}
|
Loading…
Reference in a new issue