Also export vetoed contributions
This commit is contained in:
parent
44f3128f16
commit
1cfeaec70b
@ -23,10 +23,6 @@ module.exports = async function(callback) {
|
||||
setTimeout(async () => {
|
||||
console.log(`Loading contribution #${i}`);
|
||||
await kredits.Contribution.contract.getContribution(i).then(contractData => {
|
||||
if (contractData.vetoed) {
|
||||
console.log(`Ignoring vetoed contribution #${contractData.id}`);
|
||||
resolve();
|
||||
}
|
||||
backup[i] = {
|
||||
amount: contractData.amount,
|
||||
contributorId: contractData.contributorId,
|
||||
@ -35,6 +31,7 @@ module.exports = async function(callback) {
|
||||
hashSize: contractData.hashSize,
|
||||
confirmedAtBlock: contractData.confirmedAtBlock,
|
||||
confirmed: contractData.confirmedAtBlock <= currentBlockHeight,
|
||||
vetoed: contractData.vetoed,
|
||||
id: contractData.id,
|
||||
}
|
||||
resolve();
|
||||
|
Loading…
x
Reference in New Issue
Block a user