2018-03-05 22:33:44 +03:00
|
|
|
// Copyright 2018 The Grin Developers
|
2017-05-19 18:22:08 +03:00
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2018-05-30 23:57:13 +03:00
|
|
|
//! The transaction pool, keeping a view of currently valid transactions that
|
2017-05-19 18:22:08 +03:00
|
|
|
//! may be confirmed soon.
|
|
|
|
|
|
|
|
#![deny(non_upper_case_globals)]
|
|
|
|
#![deny(non_camel_case_types)]
|
|
|
|
#![deny(non_snake_case)]
|
|
|
|
#![deny(unused_mut)]
|
|
|
|
|
2017-10-03 03:02:31 +03:00
|
|
|
extern crate blake2_rfc as blake2;
|
2017-05-19 18:22:08 +03:00
|
|
|
extern crate grin_core as core;
|
2017-10-03 03:02:31 +03:00
|
|
|
extern crate grin_keychain as keychain;
|
2017-11-01 02:20:55 +03:00
|
|
|
extern crate grin_util as util;
|
2017-11-01 02:32:33 +03:00
|
|
|
extern crate rand;
|
|
|
|
extern crate serde;
|
2018-01-28 09:12:33 +03:00
|
|
|
#[allow(unused_imports)]
|
|
|
|
#[macro_use] // Needed for Serialize/Deserialize. The compiler complaining here is a bug.
|
2017-11-01 02:32:33 +03:00
|
|
|
extern crate serde_derive;
|
2018-01-17 06:03:40 +03:00
|
|
|
#[macro_use]
|
2018-10-21 23:30:56 +03:00
|
|
|
extern crate log;
|
2018-07-30 11:33:28 +03:00
|
|
|
extern crate chrono;
|
2017-06-10 21:31:05 +03:00
|
|
|
|
2018-05-30 23:57:13 +03:00
|
|
|
mod pool;
|
|
|
|
pub mod transaction_pool;
|
|
|
|
pub mod types;
|
|
|
|
|
|
|
|
pub use transaction_pool::TransactionPool;
|
2018-10-18 13:40:58 +03:00
|
|
|
pub use types::{
|
|
|
|
BlockChain, DandelionConfig, PoolAdapter, PoolConfig, PoolEntryState, PoolError, TxSource,
|
|
|
|
};
|