add block confirmation count to global context

pull/3/head
lance 5 years ago
parent 717402aea5
commit cf95765783

@ -13,7 +13,7 @@
<li>{{ tx.transaction.hash }} ({{ tx.amount }} XMR)</li> <li>{{ tx.transaction.hash }} ({{ tx.amount }} XMR)</li>
{% endfor %} {% endfor %}
</ul> </ul>
<p>Once the payments are confirmed for 10 blocks the transaction will continue.</p> <p>Once the payments are confirmed for {{ site_meta.block_confirmations }} blocks the transaction will continue.</p>
{% else %} {% else %}
<img src="data:image/png;base64,{{ qrcode }}" width=200 class="center"> <img src="data:image/png;base64,{{ qrcode }}" width=200 class="center">
<hr> <hr>

@ -8,6 +8,7 @@ def inject_site_meta(request):
'name': settings.SITE_NAME, 'name': settings.SITE_NAME,
'escrow_period': settings.ESCROW_PERIOD_DAYS, 'escrow_period': settings.ESCROW_PERIOD_DAYS,
'tip_address': settings.TIP_WALLET_ADDRESS, 'tip_address': settings.TIP_WALLET_ADDRESS,
'platform_address': settings.PLATFORM_WALLET_ADDRESS 'platform_address': settings.PLATFORM_WALLET_ADDRESS,
'block_confirmations': settings.BLOCK_CONFIRMATIONS_RCV
} }
} }