Skip to content
Snippets Groups Projects
Commit 73316b0b authored by Éloïs's avatar Éloïs
Browse files

Merge branch 'fix/neon-build-script' into dev

parents 2db0846e 343562b0
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ stages: ...@@ -8,7 +8,7 @@ stages:
workflow: workflow:
rules: rules:
- if: $CI_COMMIT_REF_NAME =~ /^wip/ - if: $CI_COMMIT_REF_NAME =~ /^wip*/i
when: never when: never
- changes: - changes:
- .gitlab/**/* - .gitlab/**/*
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
import { BlockDTO } from "../../../lib/dto/BlockDTO"; import { BlockDTO } from "../../../lib/dto/BlockDTO";
import { WS2PHead } from "../../ws2p/lib/WS2PCluster"; import { WS2PHead } from "../../ws2p/lib/WS2PCluster";
import { JSONDBPeer } from "../../../lib/db/DBPeer"; import { JSONDBPeer } from "../../../lib/db/DBPeer";
import { TransactionDTO } from "../../../lib/dto/TransactionDTO";
export const Summary = { export const Summary = {
duniter: { duniter: {
...@@ -292,7 +293,7 @@ export function block2HttpBlock(blockDTO: BlockDTO): HttpBlock { ...@@ -292,7 +293,7 @@ export function block2HttpBlock(blockDTO: BlockDTO): HttpBlock {
revoked: blockDTO.revoked, revoked: blockDTO.revoked,
excluded: blockDTO.excluded, excluded: blockDTO.excluded,
transactions: blockDTO.transactions.map( transactions: blockDTO.transactions.map(
(tx): HttpTransactionOfBlock => { (tx: TransactionDTO): HttpTransactionOfBlock => {
return { return {
version: tx.version, version: tx.version,
currency: tx.currency, currency: tx.currency,
......
...@@ -13,12 +13,13 @@ ...@@ -13,12 +13,13 @@
import { BlockDTO } from "../../../lib/dto/BlockDTO"; import { BlockDTO } from "../../../lib/dto/BlockDTO";
import { Underscore } from "../../../lib/common-libs/underscore"; import { Underscore } from "../../../lib/common-libs/underscore";
import { HttpBlock } from "./dtos";
export const stat = (stat: number[]) => { export const stat = (stat: number[]) => {
return { blocks: stat }; return { blocks: stat };
}; };
export const block = (block: any) => { export const block = (block: any): HttpBlock => {
const json: any = {}; const json: any = {};
json.version = parseInt(block.version); json.version = parseInt(block.version);
json.nonce = parseInt(block.nonce); json.nonce = parseInt(block.nonce);
......
...@@ -37,7 +37,10 @@ module.exports = { ...@@ -37,7 +37,10 @@ module.exports = {
CommonConstants.SWITCH_ON_BRANCH_AHEAD_BY_X_BLOCKS; CommonConstants.SWITCH_ON_BRANCH_AHEAD_BY_X_BLOCKS;
// Transactions storage // Transactions storage
if (program.storeTxs) { if (
program.storeTxs ||
(program.storeTxs === undefined && !conf.nobma)
) {
if (!conf.storage) { if (!conf.storage) {
conf.storage = { transactions: true, wotwizard: false }; conf.storage = { transactions: true, wotwizard: false };
} else { } else {
......
#!/bin/bash #!/bin/sh
cd neon cd neon
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment