-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.js
31 lines (31 loc) · 909 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module.exports = {
blockLoss: (block) => {
// Proposal 002 - Miner Loss
if (block.allowed_supply != block.new_supply)
return true;
else
return false;
},
outputLoss: (block, transaction, output) => {
// Proposal 000 - Block 0 Coinbase
if (block.number == 0) {
return true;
}
// Proposal 001 - Conflicting Coinbase Transaction IDs
else if (block.number == 91722 || block.number == 91812) {
if (transaction.hash == 'e3bf3d07d4b0375638d5f1db5255fe07ba2c4cb067cd81b84ee974b6585fb468' ||
transaction.hash == 'd5d27987d2a3dfc724e359870c6644b40e497bdc0589a033220fe15429d88599') {
return true;
}
}
// Proposal 003 - MtGox Error
else if (output.script_hex == '76a90088ac') { // MtGox error
return true;
}
// Proposal 004 - OP_RETURN
else if (output.script_asm.startsWith('OP_RETURN ')) { // OP_RETURN losses
return true;
}
return false;
}
}