...
 
Commits (4)
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="burst" uuid="3daad82b-bf0e-48a9-8dff-4ae2d8f1e685">
<driver-ref>mariadb</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>org.mariadb.jdbc.Driver</jdbc-driver>
<jdbc-url>jdbc:mariadb://5.9.77.104:3306/burst</jdbc-url>
<driver-properties>
<property name="autoReconnect" value="true" />
<property name="zeroDateTimeBehavior" value="convertToNull" />
<property name="tinyInt1isBit" value="false" />
<property name="characterEncoding" value="utf8" />
<property name="characterSetResults" value="utf8" />
<property name="yearIsDateType" value="false" />
</driver-properties>
</data-source>
</component>
</project>
\ No newline at end of file
......@@ -23,7 +23,6 @@
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/reflection" />
<excludeFolder url="file://$MODULE_DIR$/vendor/easycorp/easy-log-handler" />
<excludeFolder url="file://$MODULE_DIR$/vendor/egulias/email-validator" />
<excludeFolder url="file://$MODULE_DIR$/vendor/facebook/webdriver" />
<excludeFolder url="file://$MODULE_DIR$/vendor/fig/link-util" />
<excludeFolder url="file://$MODULE_DIR$/vendor/jdorn/sql-formatter" />
<excludeFolder url="file://$MODULE_DIR$/vendor/monolog/monolog" />
......@@ -73,7 +72,6 @@
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/monolog-bundle" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/options-resolver" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/orm-pack" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/panther" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/phpunit-bridge" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-intl-icu" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-intl-idn" />
......
......@@ -47,7 +47,6 @@
<path value="$PROJECT_DIR$/vendor/symfony/security-core" />
<path value="$PROJECT_DIR$/vendor/symfony/security-http" />
<path value="$PROJECT_DIR$/vendor/symfony/inflector" />
<path value="$PROJECT_DIR$/vendor/symfony/panther" />
<path value="$PROJECT_DIR$/vendor/symfony/web-link" />
<path value="$PROJECT_DIR$/vendor/symfony/var-exporter" />
<path value="$PROJECT_DIR$/vendor/symfony/web-profiler-bundle" />
......@@ -80,7 +79,6 @@
<path value="$PROJECT_DIR$/vendor/twig/twig" />
<path value="$PROJECT_DIR$/vendor/sensio/framework-extra-bundle" />
<path value="$PROJECT_DIR$/vendor/easycorp/easy-log-handler" />
<path value="$PROJECT_DIR$/vendor/facebook/webdriver" />
<path value="$PROJECT_DIR$/vendor/phpdocumentor/reflection-docblock" />
<path value="$PROJECT_DIR$/vendor/phpdocumentor/type-resolver" />
<path value="$PROJECT_DIR$/vendor/phpdocumentor/reflection-common" />
......
......@@ -28,9 +28,9 @@ class BlockController extends AbstractController
LEFT JOIN account af ON (bi.generator_id = af.id AND af.latest = 1)
LEFT JOIN account ap ON (bi.recipient_id = ap.id AND ap.latest = 1)
WHERE b.db_id IN (?)
ORDER BY b.db_id DESC';
ORDER BY b.db_id DESC -- BlockController/BlockListByIds';
const BlockDBIDList = 'SELECT b.db_id FROM block b ORDER BY b.db_id DESC LIMIT ?,?';
const BlockDBIDList = 'SELECT b.db_id FROM block b ORDER BY b.db_id DESC LIMIT ?,? -- BlockController/BlockDBIDList';
const BlockDetails = ' SELECT CAST(b.id AS UNSIGNED) AS id,
b.height,
......@@ -58,7 +58,7 @@ class BlockController extends AbstractController
LEFT JOIN account ap ON (bi.recipient_id = ap.id AND ap.latest = 1)
LEFT JOIN block nb ON (b.id = nb.previous_block_id)
LEFT JOIN block pb ON (b.previous_block_id = pb.id)
WHERE CAST(b.id AS UNSIGNED) = ?';
WHERE CAST(b.id AS UNSIGNED) = ? -- BlockController/BlockDetails';
const BlockDetailsHeight = ' SELECT CAST(b.id AS UNSIGNED) AS id,
b.height,
......@@ -86,9 +86,9 @@ class BlockController extends AbstractController
LEFT JOIN account ap ON (bi.recipient_id = ap.id AND ap.latest = 1)
LEFT JOIN block nb ON (b.id = nb.previous_block_id)
LEFT JOIN block pb ON (b.previous_block_id = pb.id)
WHERE b.height = ?';
WHERE b.height = ? -- BlockController/BlockDetailsHeight';
const BlockCount = ' SELECT count(height) as COUNT FROM block';
const BlockCount = ' SELECT count(height) as COUNT FROM block -- BlockController/BlockCount';
private $entityManager;
......
This diff is collapsed.
......@@ -46,6 +46,9 @@
<th>Recipient</th>
<th>Amount</th>
<th>Fee</th>
{% if route != "transactions_by_height" and route != "transactions_by_blockId" %}
<th>Block</th>
{% endif %}
<th>Timestamp</th>
</thead>
<tbody>
......@@ -69,6 +72,9 @@
</td>
<td>{{ transaction.amount }}</td>
<td>{{ transaction.fee }}</td>
{% if route != "transactions_by_height" and route != "transactions_by_blockId" %}
<td><a href="{{ url('block_details', {'block_id': transaction.block_id}) }}">{{ transaction.height }}</a></td>
{% endif %}
<td>{{ transaction.unixtime | date ("Y-m-d H:i:s", "Europe/Berlin") }}</td>
</tr>
{% endfor %}
......