Skip to content

Instantly share code, notes, and snippets.

View PlasmaPower's full-sized avatar

Lee Bousfield PlasmaPower

View GitHub Profile
16c16
< 'desktop-file-utils' 'hicolor-icon-theme')
---
> 'desktop-file-utils' 'hicolor-icon-theme' 'ncurses5-compat-libs')
22a23
> options=('!strip')
47c48
< [icu]=icu
---
> #[icu]=icu # NACL doesn't like this
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
# Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=chromium
pkgver=69.0.3497.92
pkgrel=1
_launcher_ver=6
pkgdesc="A web browser built for speed, simplicity, and security"
extern crate blake2;
extern crate byteorder;
extern crate ed25519_dalek;
extern crate hex;
extern crate lmdb_zero as lmdb;
extern crate nanocurrency_types;
extern crate reqwest;
extern crate serde_json;
use blake2::Blake2b;
extern crate blake2;
extern crate byteorder;
extern crate ed25519_dalek;
extern crate hex;
extern crate lmdb_zero as lmdb;
extern crate nanocurrency_types;
extern crate reqwest;
extern crate serde_json;
use blake2::Blake2b;
diff --git a/rai/blockstore.cpp b/rai/blockstore.cpp
index 335edfe3..320a559e 100644
--- a/rai/blockstore.cpp
+++ b/rai/blockstore.cpp
@@ -554,43 +554,68 @@ void rai::block_store::upgrade_v10_to_v11 (MDB_txn * transaction_a)
void rai::block_store::upgrade_v11_to_v12 (MDB_txn * transaction_a)
{
version_put (transaction_a, 12);
- for (rai::store_iterator i (transaction_a, accounts), n (nullptr); i != n; ++i)
{
diff --git a/rai/blockstore.cpp b/rai/blockstore.cpp
index 335edfe3..700cc648 100644
--- a/rai/blockstore.cpp
+++ b/rai/blockstore.cpp
@@ -560,7 +560,9 @@ void rai::block_store::upgrade_v11_to_v12 (MDB_txn * transaction_a)
{
std::vector<uint8_t> bytes ((uint8_t *)i->second.data (), (uint8_t *)i->second.data () + i->second.size ());
bytes.push_back (0); // version field
- mdb_cursor_put (i.cursor, i->first, rai::mdb_val (bytes.size (), bytes.data ()), MDB_CURRENT);
+ bytes.push_back (0); // version field
diff --git a/rai/node/wallet.cpp b/rai/node/wallet.cpp
index b128427f..4d8f89a0 100644
--- a/rai/node/wallet.cpp
+++ b/rai/node/wallet.cpp
@@ -832,28 +832,48 @@ void rai::wallet_store::destroy (MDB_txn * transaction_a)
assert (status == 0);
}
-std::shared_ptr<rai::block> rai::wallet::receive_action (rai::send_block const & send_a, rai::account const & representative_a, rai::uint128_union const & amount_a, bool generate_work_a)
+std::shared_ptr<rai::block> rai::wallet::receive_action (rai::block const & send_a, rai::account const & representative_a, rai::uint128_union const & amount_a, bool generate_work_a)
#[macro_use]
extern crate neon;
use neon::vm::{Call, JsResult};
use neon::js::binary::JsBuffer;
use neon::js::error::JsError;
use neon::js::error;
use neon::vm::Lock;
use neon::mem::Handle;
@PlasmaPower
PlasmaPower / stretch64.log
Last active December 28, 2017 23:36
Borg Vagrant stretch64 FS encoding warning issue
Bringing machine 'stretch64' up with 'libvirt' provider...
==> stretch64: Creating image (snapshot of base box volume).
==> stretch64: Creating domain with the following settings...
==> stretch64: -- Name: borg_stretch64
==> stretch64: -- Domain type: kvm
==> stretch64: -- Cpus: 1
==> stretch64: -- Feature: acpi
==> stretch64: -- Feature: apic
==> stretch64: -- Feature: pae
==> stretch64: -- Memory: 512M
pub struct FilterMapInput<F, M>(F, M);
impl<I, T, F: Filter<T>, M: Fn(I) -> T> Filter<I> for FilterMapInput<F, M> {
fn filter(&self, e: &I) -> bool {
self.0.filter(self.1(e))
}
}
pub struct FailableFilterMapErr<F, M>(F, M);