We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f03a5d commit f4e3b52Copy full SHA for f4e3b52
test/transaction.js
@@ -129,6 +129,24 @@ describe('Transaction', function () {
129
})
130
131
132
+ describe('weight/virtualSize', function () {
133
+ it('computes virtual size', function () {
134
+ fixtures.valid.forEach(function (f) {
135
+ var transaction = Transaction.fromHex(f.whex ? f.whex : f.hex)
136
+
137
+ assert.strictEqual(transaction.virtualSize(), f.virtualSize)
138
+ })
139
140
141
+ it('computes weight', function () {
142
143
144
145
+ assert.strictEqual(transaction.weight(), f.weight)
146
147
148
149
150
describe('addInput', function () {
151
var prevTxHash
152
beforeEach(function () {
0 commit comments