Skip to content

Commit

Permalink
add upgrade_parameters (#31) (#32)
Browse files Browse the repository at this point in the history
* add upgrade_parameters

* fix type
  • Loading branch information
montecarlomind authored and Thaipanda committed Jun 17, 2019
1 parent d5c8c52 commit 29b06b6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/guides/native-tester.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Once you have your smart contract written then a test source file can be written
```c++
#include <eosio/eosio.hpp>

using namespace eosio;s
using namespace eosio;

CONTRACT hello : public eosio::contract {
public:
Expand Down
4 changes: 2 additions & 2 deletions libraries/eosiolib/eosiolib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace eosio {
extern "C" {
__attribute__((eosio_wasm_import))
__attribute__((eosio_wasm_import))
uint64_t current_time();
__attribute__((eosio_wasm_import))
void set_blockchain_parameters_packed(char*, uint32_t);
__attribute__((eosio_wasm_import))
uint32_t get_blockchain_parameters_packed(char*, uint32_t);
__attribute__((eosio_wasm_import))
__attribute__((eosio_wasm_import))
void set_upgrade_parameters_packed(char*, uint32_t);
__attribute__((eosio_wasm_import))
int64_t set_proposed_producers( char *producer_data, uint32_t producer_data_size );
Expand Down
8 changes: 8 additions & 0 deletions libraries/eosiolib/privileged.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@ namespace eosio {
)
};

struct upgrade_parameters {
uint32_t target_block_num;

EOSLIB_SERIALIZE(upgrade_parameters,
(target_block_num)
)
};

/**
* @brief Set the blockchain parameters
* Set the blockchain parameters
Expand Down

0 comments on commit 29b06b6

Please sign in to comment.