Drop size down 4 bytes
This commit is contained in:
parent
0b15b43564
commit
6fffcaef3d
@ -292,7 +292,7 @@ BlockTemplate.prototype.createCoinbase = function createCoinbase(hash) {
|
|||||||
// CB size = 126
|
// CB size = 126
|
||||||
// Sigops cost = 4
|
// Sigops cost = 4
|
||||||
// With segwit:
|
// With segwit:
|
||||||
// CB weight = 728
|
// CB weight = 724
|
||||||
// CB stripped size = 173
|
// CB stripped size = 173
|
||||||
// CB size = 209
|
// CB size = 209
|
||||||
// Sigops cost = 4
|
// Sigops cost = 4
|
||||||
@ -301,7 +301,7 @@ BlockTemplate.prototype.createCoinbase = function createCoinbase(hash) {
|
|||||||
assert.strictEqual(cb.getBaseSize() + padding, 126);
|
assert.strictEqual(cb.getBaseSize() + padding, 126);
|
||||||
assert.strictEqual(cb.getSize() + padding, 126);
|
assert.strictEqual(cb.getSize() + padding, 126);
|
||||||
} else {
|
} else {
|
||||||
assert.strictEqual(cb.getWeight() + padding * scale, 728);
|
assert.strictEqual(cb.getWeight() + padding * scale, 724);
|
||||||
assert.strictEqual(cb.getBaseSize() + padding, 173);
|
assert.strictEqual(cb.getBaseSize() + padding, 173);
|
||||||
assert.strictEqual(cb.getSize() + padding, 209);
|
assert.strictEqual(cb.getSize() + padding, 209);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "fcoin",
|
"name": "fcoin",
|
||||||
"version": "1.0.0-beta.25",
|
"version": "1.0.0-beta.26",
|
||||||
"description": "Flo bike-shed",
|
"description": "Flo bike-shed",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "git://github.com/oipwg/fcoin.git",
|
"repository": "git://github.com/oipwg/fcoin.git",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user